]> git.pld-linux.org Git - packages/at.git/blame - atd.init
fixed
[packages/at.git] / atd.init
CommitLineData
f4736427 1#!/bin/sh
283c91e0 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
5d26daad 16# Try get sysconfig ...
17if [ -f /etc/sysconfig/at ]; then
18 . /etc/sysconfig/at
19fi
20
283c91e0 21# See how we were called.
22#
23case "$1" in
24 start)
5d26daad 25 show Starting at daemon
26 daemon atd
27 touch /var/lock/subsys/atd
283c91e0 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
44esac
45
46exit 0
This page took 0.035495 seconds and 4 git commands to generate.