aboutsummaryrefslogtreecommitdiffstats
path: root/community/at/atd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/at/atd.initd')
-rw-r--r--community/at/atd.initd32
1 files changed, 12 insertions, 20 deletions
diff --git a/community/at/atd.initd b/community/at/atd.initd
index 733e5d04dd0..f0bdfc3b300 100644
--- a/community/at/atd.initd
+++ b/community/at/atd.initd
@@ -1,27 +1,19 @@
#!/sbin/openrc-run
-# init.d file for atd (command scheduling daemon)
+description="A command scheduling daemon"
-command="/usr/sbin/$SVCNAME"
-pidfile="/var/run/$SVCNAME.pid"
+command="/usr/sbin/atd"
+command_args="
+ -f
+ ${load_average:+"-l $load_average"}
+ ${batch_interval:+"-b $batch_interval"}
+ $command_args
+ "
+command_background="yes"
+pidfile="/run/$RC_SVCNAME.pid"
depend() {
+ need clock
+ use logger
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 $?
-}
-