3 # crond Start/Stop the cron clock daemon.
5 # chkconfig: 2345 40 60
7 # description: cron is a standard UNIX program that runs user-specified \
8 # programs at periodic scheduled times. hc-cron adds a number \
9 # of features to the basic UNIX cron, including better security \
10 # and more powerful configuration options.
13 # config: /etc/fcron.conf
14 # pidfile: /var/run/fcron.pid
17 # Source function library
18 . /etc/rc.d/init.d/functions
21 [ -f /etc/sysconfig/cron ] && . /etc/sysconfig/cron
24 # See how we were called.
27 # Check if the service is already running?
28 if [ ! -f /var/lock/subsys/crond ]; then
30 [ -f /var/spool/cron/systab.orig ] && rm -rf /var/spool/cron/systab.orig
31 FIND=`find /etc/cron.d/ \( -type f ! -name '*~' ! -name \*\.rpmnew ! -name \*\.rpmsave \)`
33 cat $FILE >>/var/spool/cron/systab.orig
35 fcrontab -u systab -z > /dev/null 2>&1
36 daemon /usr/sbin/crond -b -c /etc/fcron.conf
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/crond
40 msg_already_running fcron
45 if [ -f /var/lock/subsys/crond ]; then
48 rm -f /var/lock/subsys/crond >/dev/null 2>&1
64 msg_usage "$0 {start|stop|restart|force-reload|status}"