diff options
author | 2001-09-13 22:09:49 +0000 | |
---|---|---|
committer | 2001-09-13 22:09:49 +0000 | |
commit | 6367c879350e7fb56b3fd80390db30a896a482f6 (patch) | |
tree | 2e9bd2989a2a0e4c61105f93c01f7a9e4811a93c /sys-apps/at | |
parent | added rc6 init scripts (diff) | |
download | historical-6367c879350e7fb56b3fd80390db30a896a482f6.tar.gz historical-6367c879350e7fb56b3fd80390db30a896a482f6.tar.bz2 historical-6367c879350e7fb56b3fd80390db30a896a482f6.zip |
lamer i already had this script fully done -- then you came along and
trashed it back to the stone age.. why?
could yuo please not do that anymore.. thanks.
Diffstat (limited to 'sys-apps/at')
-rw-r--r-- | sys-apps/at/files/atd.rc6 | 32 |
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 $? } |