Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > cd522215a5ecc020324f320c6a76fca7 > scriptlet

cronie-1.5.1-1.mga6.x86_64.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service cronie $1 crond

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service cronie $1 crond

POSTUN

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

# copy the lock, remove old daemon from chkconfig

Triggers

vixie-cron

/bin/sh
cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||:

# if the lock exist, then we restart daemon (it was running in the past).
# add new daemon into chkconfig everytime, when we upgrade to cronie from vixie-cron

vixie-cron

/bin/sh
/sbin/chkconfig --add crond
[ -f /var/lock/subsys/cronie ] && ( rm -f /var/lock/subsys/cronie ; service crond restart ) > /dev/null 2>&1 ||: