diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 19:21:28 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 19:21:28 -0500 |
commit | b71fe05dce49b3453b5b556be023b831344a62a8 (patch) | |
tree | e8c17ecca61918d1dd4a0c10f1d38043737b474c /system/at/atd.initd | |
parent | 33ab6f745fc7bcbc62a04445ec26bed721aabff4 (diff) | |
download | packages-b71fe05dce49b3453b5b556be023b831344a62a8.tar.gz packages-b71fe05dce49b3453b5b556be023b831344a62a8.tar.bz2 packages-b71fe05dce49b3453b5b556be023b831344a62a8.tar.xz packages-b71fe05dce49b3453b5b556be023b831344a62a8.zip |
system/at: add for POSIX
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 $? +} + |