diff options
Diffstat (limited to 'system/at/atd.initd')
-rw-r--r-- | system/at/atd.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/system/at/atd.initd b/system/at/atd.initd new file mode 100644 index 000000000..733e5d04d --- /dev/null +++ b/system/at/atd.initd @@ -0,0 +1,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 $? +} + |