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 daemon /usr/sbin/fcron -b -c /etc/fcron.conf
32 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/crond
34 msg_already_running fcron
39 if [ -f /var/lock/subsys/crond ]; then
42 rm -f /var/lock/subsys/crond >/dev/null 2>&1
58 msg_usage "$0 {start|stop|restart|force-reload|status}"