3 # crond Start/Stop the cron clock daemon.
5 # chkconfig: 2345 40 60
7 # description: Fcron is a periodical command scheduler which aims at replacing \
8 # Vixie Cron, so it implements most of its functionalities.
11 # config: /etc/fcron.conf
12 # pidfile: /var/run/crond.pid
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 [ -f /etc/sysconfig/cron ] && . /etc/sysconfig/cron
22 # See how we were called.
25 # Check if the service is already running?
26 if [ ! -f /var/lock/subsys/crond ]; then
28 [ -f /var/spool/cron/systab.orig ] && rm -rf /var/spool/cron/systab.orig
29 FIND=`find /etc/cron.d/ \( -type f ! -name '*~' ! -name \*\.swp \
30 ! -name \*\.rpmorig ! -name \*\.rpmnew ! -name \*\.rpmsave \)`
32 cat $FILE >>/var/spool/cron/systab.orig
34 fcrontab -u systab -z > /dev/null 2>&1
35 daemon /usr/sbin/crond -b -c /etc/fcron.conf
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/crond
39 msg_already_running fcron
44 if [ -f /var/lock/subsys/crond ]; then
47 rm -f /var/lock/subsys/crond >/dev/null 2>&1
63 msg_usage "$0 {start|stop|restart|force-reload|status}"