3 # crond Start/Stop the cron clock daemon.
5 # chkconfig: 2345 40 60
6 # description: cron is a standard UNIX program that runs user-specified \
7 # programs at periodic scheduled times. cronie adds a \
8 # number of features to the basic UNIX cron, including better \
9 # security and more powerful configuration options.
12 # config: /etc/crontab
13 # pidfile: /var/run/crond.pid
16 # Source function library.
17 . /etc/rc.d/init.d/functions
20 [ -f /etc/sysconfig/cron ] && . /etc/sysconfig/cron
23 # Check if the service is already running?
24 if [ ! -f /var/lock/subsys/crond ]; then
26 daemon /usr/sbin/crond
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/crond
30 msg_already_running "cronie"
35 if [ -f /var/lock/subsys/crond ]; then
38 rm -f /var/lock/subsys/crond
40 msg_not_running "cronie"
45 # See how we were called.
62 if [ -f /var/lock/subsys/crond ]; then
63 msg_reloading "cronie"
67 msg_not_running "cronie"
72 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"