git://git.onelab.eu
/
mom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e9b522b
)
- stop old version of pl_mom before upgrading
author
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 30 May 2006 17:42:00 +0000
(17:42 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 30 May 2006 17:42:00 +0000
(17:42 +0000)
pl_mom.spec
patch
|
blob
|
history
diff --git
a/pl_mom.spec
b/pl_mom.spec
index
2af45ec
..
34875f4
100644
(file)
--- a/
pl_mom.spec
+++ b/
pl_mom.spec
@@
-1,6
+1,6
@@
%define name pl_mom
%define version 0.4
-%define release
1
%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+%define release
2
%{?pldistro:.%{pldistro}}%{?date:.%{date}}
Summary: PlanetLab node monitoring tools
Name: %{name}
@@
-61,6
+61,13
@@
install -D -m 644 pl_mom.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/pl_mom
%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+if [ "$PL_BOOTCD" != "1" ] ; then
+ service pl_mom stop
+fi
+
+exit 0
+
%post
chkconfig --add swapmon
chkconfig swapmon on