X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pl_mom.spec;h=4810d846d1a0bfc2ebeb00c4eab5aa702099703d;hb=67cc76870b2f956d6655a129839431b96f5f7f11;hp=eaf3818cfc2ac5f3ae7fa78bf7df284f0b193c0d;hpb=1beb79232d2015f6c4eb40c4fab2b1ccda9fc85a;p=mom.git diff --git a/pl_mom.spec b/pl_mom.spec index eaf3818..4810d84 100644 --- a/pl_mom.spec +++ b/pl_mom.spec @@ -1,6 +1,6 @@ %define name pl_mom %define version 0.3 -%define release 4.planetlab%{?date:.%{date}} +%define release 9.planetlab%{?date:.%{date}} Summary: PlanetLab mom -- Cleans up your mess Name: %{name} @@ -46,26 +46,25 @@ cp pl_mom.pl $RPM_BUILD_ROOT/usr/local/planetlab/bin/ %post -RUNLEVEL=`/sbin/runlevel` - 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 -RUNLEVEL=`/sbin/runlevel` - if [ "$1" -eq 0 ]; then - if [[ "$RUNLEVEL" != "unknown" ]]; then + if [[ "$PL_BOOTCD" != "1" ]]; then /etc/init.d/pl_mom stop fi + + chkconfig --del pl_mom + chkconfig pl_mom off fi