diff options
Diffstat (limited to 'sys-apps/dcron/files/dcron-newinit')
-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}." +} |