aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dcron/dcron.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/dcron/dcron.initd')
-rw-r--r--testing/dcron/dcron.initd22
1 files changed, 4 insertions, 18 deletions
diff --git a/testing/dcron/dcron.initd b/testing/dcron/dcron.initd
index cdc70c084c..5639a666d0 100644
--- a/testing/dcron/dcron.initd
+++ b/testing/dcron/dcron.initd
@@ -1,26 +1,12 @@
#!/sbin/openrc-run
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron.init-4.5,v 1.1 2011/05/16 20:28:54 vapier Exp $
+name="$SVCNAME"
+command="/usr/sbin/crond"
+command_args="$DCRON_OPTS"
+pidfile="/var/run/crond.pid"
description="Dillon's lightweight cron daemon"
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}
-}