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
26 show Starting at daemon
29 echo "atd already is running"
31 touch /var/lock/subsys/atd
34 show Stopping at daemon
36 rm -f /var/lock/subsys/atd
46 echo "Usage: $0 {start|stop|restart|reload|status}"