diff options
author | Ben Lutgens <lamer@gentoo.org> | 2001-09-13 02:05:38 +0000 |
---|---|---|
committer | Ben Lutgens <lamer@gentoo.org> | 2001-09-13 02:05:38 +0000 |
commit | 58165712a67f1465733b157d76cd5a397a15e8ae (patch) | |
tree | d8c862bf8a7a22b08f16818f2dcd62445b09487d /sys-apps/at/files | |
parent | update for build image (diff) | |
download | gentoo-2-58165712a67f1465733b157d76cd5a397a15e8ae.tar.gz gentoo-2-58165712a67f1465733b157d76cd5a397a15e8ae.tar.bz2 gentoo-2-58165712a67f1465733b157d76cd5a397a15e8ae.zip |
fixup of the initscript
Diffstat (limited to 'sys-apps/at/files')
-rw-r--r-- | sys-apps/at/files/atd.rc6 | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/sys-apps/at/files/atd.rc6 b/sys-apps/at/files/atd.rc6 index 8e3b1395bc28..eb1d5777ee9c 100644 --- a/sys-apps/at/files/atd.rc6 +++ b/sys-apps/at/files/atd.rc6 @@ -1,17 +1,31 @@ #!/sbin/runscript -depend() { - need clock +SERVICE=atd +EXE=/usr/sbin/atd +PIDFILE=/var/run/atd.pid +opts="start stop restart" + +# See how we were called. + +start() { + + ebegin "Starting ${SERVICE}..." + start-stop-daemon --start --quiet --exec ${EXE} + eend $? + } -function start() { - 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 $? + } -function stop() { - ebegin "Shutting down atd" - start-stop-daemon --stop --quiet --pidfile /var/run/atd.pid - eend $? +restart () { + + stop + start + } |