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 ||: