diff options
Diffstat (limited to 'sys-process/dcron/files/dcron-r4')
-rwxr-xr-x | sys-process/dcron/files/dcron-r4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-process/dcron/files/dcron-r4 b/sys-process/dcron/files/dcron-r4 new file mode 100755 index 000000000000..94072c8e5a51 --- /dev/null +++ b/sys-process/dcron/files/dcron-r4 @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron-r4,v 1.1 2005/03/04 23:42:58 ciaranm Exp $ + +depend() { + use logger + need clock hostname + provide cron +} + +start() { + ebegin "Starting dcron" + /usr/sbin/crond >> /var/log/cron.log 2>&1 + eend $? +} + +stop() { + ebegin "Stopping dcron" + start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid + local ret=$? + rm -f /var/run/cron.pid + eend ${ret} +} |