diff options
author | 2001-09-13 22:09:49 +0000 | |
---|---|---|
committer | 2001-09-13 22:09:49 +0000 | |
commit | cb8985207f664a1710c2664eb4c2a3fcc8a9238c (patch) | |
tree | a4bfe9245cdd22eb8ea24b5d0ad09c88288ea3be /sys-apps | |
parent | added rc6 init scripts (diff) | |
download | gentoo-2-cb8985207f664a1710c2664eb4c2a3fcc8a9238c.tar.gz gentoo-2-cb8985207f664a1710c2664eb4c2a3fcc8a9238c.tar.bz2 gentoo-2-cb8985207f664a1710c2664eb4c2a3fcc8a9238c.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')
-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 $? } |