diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2001-08-17 22:08:53 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2001-08-17 22:08:53 +0000 |
commit | 6a4c5057f26ea218ac0795c82aa0dced066b1f3c (patch) | |
tree | b3dc7461495b55bd0f946ba69a1f13f8de7359af /sys-apps/dcron | |
parent | made ping suid root (diff) | |
download | gentoo-2-6a4c5057f26ea218ac0795c82aa0dced066b1f3c.tar.gz gentoo-2-6a4c5057f26ea218ac0795c82aa0dced066b1f3c.tar.bz2 gentoo-2-6a4c5057f26ea218ac0795c82aa0dced066b1f3c.zip |
new version of dcron for rc6
Diffstat (limited to 'sys-apps/dcron')
-rw-r--r-- | sys-apps/dcron/files/dcron-newinit | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/dcron/files/dcron-newinit b/sys-apps/dcron/files/dcron-newinit new file mode 100644 index 000000000000..a1b9180f606c --- /dev/null +++ b/sys-apps/dcron/files/dcron-newinit @@ -0,0 +1,16 @@ +#!/sbin/runscript + +SERVICE=dcron +EXE="/usr/sbin/crond" + +start() { + ebegin "Starting ${SERVICE}" + start-stop-daemon --start --quiet --exec $EXE 1>&2 + eend $? "Error starting ${SERVICE}." +} + +stop() { + ebegin "Stopping ${SERVICE}" + start-stop-daemon --stop --quiet -u root -n $SERVICE 1>&2 + eend $? "Error stopping ${SERVICE}." +} |