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.
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
25 msg_already_running "cronie crond"
29 msg_starting "cronie crond"
30 daemon /usr/sbin/crond
32 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/crond
36 if [ ! -f /var/lock/subsys/crond ]; then
37 msg_not_running "cronie crond"
41 msg_stopping "cronie crond"
43 rm -f /var/lock/subsys/crond
47 if [ ! -f /var/lock/subsys/crond ]; then
48 msg_not_running "cronie crond"
53 msg_reloading "cronie crond"
59 if [ ! -f /var/lock/subsys/crond ]; then
60 msg_not_running "cronie crond"
70 # See how we were called.
85 reload|force-reload|flush-logs)
93 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|flush-logs|status}"