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 (parent:
362f757
)
- check $PL_BOOTCD instead of runlevel
author
Mark Huang
<mlhuang@cs.princeton.edu>
Sun, 28 Aug 2005 16:20:57 +0000
(16:20 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Sun, 28 Aug 2005 16:20:57 +0000
(16:20 +0000)
pl_mom.spec
patch
|
blob
|
history
diff --git
a/pl_mom.spec
b/pl_mom.spec
index
6a90f78
..
4810d84
100644
(file)
--- a/
pl_mom.spec
+++ b/
pl_mom.spec
@@
-46,26
+46,25
@@
cp pl_mom.pl $RPM_BUILD_ROOT/usr/local/planetlab/bin/
%post
%post
-RUNLEVEL=`/sbin/runlevel`
-
if [ "$1" -ge 1 ]; then
chkconfig --add pl_mom
chkconfig --level 3 pl_mom on
if [ "$1" -ge 1 ]; then
chkconfig --add pl_mom
chkconfig --level 3 pl_mom on
- if [[ "$
RUNLEVEL" != "unknown
" ]]; then
+ if [[ "$
PL_BOOTCD" != "1
" ]]; then
/etc/init.d/pl_mom stop
/etc/init.d/pl_mom start
fi
fi
%preun
/etc/init.d/pl_mom stop
/etc/init.d/pl_mom start
fi
fi
%preun
-RUNLEVEL=`/sbin/runlevel`
-
if [ "$1" -eq 0 ]; then
if [ "$1" -eq 0 ]; then
- if [[ "$
RUNLEVEL" != "unknown
" ]]; then
+ if [[ "$
PL_BOOTCD" != "1
" ]]; then
/etc/init.d/pl_mom stop
fi
/etc/init.d/pl_mom stop
fi
+
+ chkconfig --del pl_mom
+ chkconfig pl_mom off
fi
fi