]> git.pld-linux.org Git - packages/at.git/blob - atd.init
- fixed typo s/compiliat/compliat/.
[packages/at.git] / atd.init
1 #!/bin/bash
2 #
3 #       /etc/rc.d/init.d/atd
4 #
5 # Starts the at daemon
6 #
7 # chkconfig: 345 40 60
8 # description: Runs commands scheduled by the at command at the time \
9 #    specified when at was run, and runs batch commands when the load \
10 #    average is low enough.
11 # processname: atd
12
13 # Source function library.
14 . /etc/rc.d/init.d/functions
15
16 test -x /usr/sbin/atd || exit 0
17 #
18 #       See how we were called.
19 #
20 case "$1" in
21   start)
22         # Check if atd is already running
23         if [ ! -f /var/lock/subsys/atd ]; then
24             show Starting at daemon
25             daemon atd
26             touch /var/lock/subsys/atd
27         fi
28         ;;
29   stop)
30         show Stopping at daemon
31         killproc atd
32         rm -f /var/lock/subsys/atd
33         ;;
34   reload|restart)
35         $0 stop
36         $0 start
37         ;;
38   status)
39         status atd
40         ;;
41   *)
42         echo "Usage: $0 {start|stop|restart|reload|status}"
43         exit 1
44 esac
45
46 exit 0
This page took 0.044682 seconds and 3 git commands to generate.