summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/at/files/atd.rc632
1 files changed, 9 insertions, 23 deletions
diff --git a/sys-apps/at/files/atd.rc6 b/sys-apps/at/files/atd.rc6
index eb1d5777ee9c..e2034f647ac2 100644
--- a/sys-apps/at/files/atd.rc6
+++ b/sys-apps/at/files/atd.rc6
@@ -1,31 +1,17 @@
#!/sbin/runscript
-SERVICE=atd
-EXE=/usr/sbin/atd
-PIDFILE=/var/run/atd.pid
-opts="start stop restart"
-
-# See how we were called.
+depend() {
+ need clock
+}
start() {
-
- ebegin "Starting ${SERVICE}..."
- start-stop-daemon --start --quiet --exec ${EXE}
- eend $?
-
+ ebegin "Starting atd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/atd
+ eend $?
}
stop() {
-
- ebegin "Shutting down ${SERVICE}..."
- start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- eend $?
-
-}
-
-restart () {
-
- stop
- start
-
+ ebegin "Shutting down atd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/atd.pid
+ eend $?
}