summaryrefslogtreecommitdiff
blob: eb1d5777ee9c6c929f3a11cd1314f519f58d865a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/sbin/runscript

SERVICE=atd
EXE=/usr/sbin/atd
PIDFILE=/var/run/atd.pid
opts="start stop restart"

# See how we were called.

start() {

	ebegin "Starting ${SERVICE}..."
	start-stop-daemon --start --quiet --exec ${EXE}
	eend $?

}

stop() {

	ebegin "Shutting down ${SERVICE}..."
	start-stop-daemon --stop --quiet --pidfile ${PIDFILE} 
	eend $?

}

restart () {

	stop
	start

}