Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 6435ccce3db4f9ed43dbb1c786314384 > scriptlet

anacron-2.3-11mdk.ppc.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then service anacron stop > /dev/null 2>/dev/null || :; /sbin/chkconfig --del anacron; fi;#if [ "$1" = "0" ]; then
#    service anacron stop >/dev/null 2>&1
#    /sbin/chkconfig --del anacron
#fi

POSTIN

/bin/sh
#/sbin/chkconfig --add anacron
if [ $1 = 1 ]; then /sbin/chkconfig --add anacron; else if [ -f /var/lock/subsys/anacron ]; then service anacron restart > /dev/null 2>/dev/null || : ; fi; fi;
#%preun
#chkconfig --del anacron

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
    service anacron condrestart >/dev/null 2>&1
fi