]> git.pld-linux.org Git - packages/at.git/blob - atd.init
fixed
[packages/at.git] / atd.init
1 #!/bin/sh
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 # Try get sysconfig ...
17 if [ -f /etc/sysconfig/at ]; then
18     . /etc/sysconfig/at
19 fi    
20
21 #       See how we were called.
22 #
23 case "$1" in
24   start)
25         show Starting at daemon
26         daemon atd
27         touch /var/lock/subsys/atd
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.029345 seconds and 3 git commands to generate.