Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > a742d2d303442fd511e7ba9cddb8d60f > scriptlet

hc-cron-0.14-9.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	if [ -f /var/lock/subsys/crond ]; then
		/etc/rc.d/init.d/crond stop >&2
	fi
	/sbin/chkconfig --del crond
fi

POSTIN

/bin/sh
/sbin/chkconfig --add crond
if [ -f /var/lock/subsys/crond ]; then
	/etc/rc.d/init.d/crond restart >&2
else
	echo "Run \"/etc/rc.d/init.d/crond start\" to start cron daemon."
fi
touch /var/log/cron
chmod 640 /var/log/cron

Triggers

vixie-cron

/bin/sh
/sbin/chkconfig --add crond

hc-cron <= 0.14-8

/bin/sh
if [ -f /var/lib/cron.lastrun ]; then
	mv -f /var/lib/cron.lastrun /var/lib/misc/cron.lastrun
fi