mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 05:12:18 +01:00
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.
28 lines
486 B
Plaintext
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 $?
|
|
}
|
|
|