summaryrefslogtreecommitdiff
path: root/system/at/atd.initd
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 19:21:28 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 19:21:28 -0500
commitb71fe05dce49b3453b5b556be023b831344a62a8 (patch)
treee8c17ecca61918d1dd4a0c10f1d38043737b474c /system/at/atd.initd
parent33ab6f745fc7bcbc62a04445ec26bed721aabff4 (diff)
downloadpackages-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.initd27
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 $?
+}
+