blob: 733e5d04dd0c0f321701caf3665cadb1fd72a4a5 (
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
|
#!/sbin/openrc-run
# init.d file for atd (command scheduling daemon)
command="/usr/sbin/$SVCNAME"
pidfile="/var/run/$SVCNAME.pid"
depend() {
after localmount
}
start() {
ebegin "Starting command scheduling daemon ${SVCNAME}"
start-stop-daemon --start --quiet \
--pidfile ${pidfile} \
--exec ${command}
eend $?
}
stop() {
ebegin "Stopping command scheduling daemon ${name}"
start-stop-daemon --stop --quiet \
--pidfile ${pidfile} \
--exec ${command}
eend $?
}
|