3 # atd Runs commands scheduled by the at command
7 # description: Runs commands scheduled by the at command at the time \
8 # specified when at was run, and runs batch commands when \
9 # the load average is low enough.
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 [ -f /etc/sysconfig/atd ] && . /etc/sysconfig/atd
21 # See how we were called.
24 # Check if the service is already running?
25 if [ ! -f /var/lock/subsys/atd ]; then
29 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/atd
31 msg_already_running atd
35 if [ -f /var/lock/subsys/atd ]; then
38 rm -f /var/lock/subsys/atd
53 msg_usage "$0 {start|stop|restart|force-reload|status}"