aports/testing/at/atd.initd
msun 81f12a7c2b testing/at: renamed init script from at to atd
Init script for at-daemon failed to start /usr/sbin/atd until the srcipt has not been renamed because $SVCNAME returns basename of the script. The fact skipped my mind... Please commit this patch to fix the annoying bug.
2016-03-01 12:22:49 +00:00

28 lines
486 B
Plaintext

#!/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 $?
}