diff options
Diffstat (limited to 'sys-process/dcron/files/dcron.init-4.5')
-rwxr-xr-x | sys-process/dcron/files/dcron.init-4.5 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-process/dcron/files/dcron.init-4.5 b/sys-process/dcron/files/dcron.init-4.5 new file mode 100755 index 000000000000..0224283523a8 --- /dev/null +++ b/sys-process/dcron/files/dcron.init-4.5 @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use logger clock hostname + provide cron +} + +start() { + ebegin "Starting ${SVCNAME}" + /usr/sbin/crond ${DCRON_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/crond.pid --exec /usr/sbin/crond + local ret=$? + rm -f /var/run/crond.pid + eend ${ret} +} |