diff options
| author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-02-15 17:21:35 +0100 |
|---|---|---|
| committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-02-15 17:24:47 +0100 |
| commit | 9b1914641d2c38ee02e8de2b9e8fa489ece14218 (patch) | |
| tree | 148a460c67904d3fc3de96e80b9e67d3b9d1f4dd /testing/dcron/dcron.initd | |
| parent | 6eeb5be5d811904026eb5e614e6dede4d37f319c (diff) | |
| download | aports-9b1914641d2c38ee02e8de2b9e8fa489ece14218.tar.bz2 aports-9b1914641d2c38ee02e8de2b9e8fa489ece14218.tar.xz | |
testing/dcron: simplify OpenRC service
Diffstat (limited to 'testing/dcron/dcron.initd')
| -rw-r--r-- | testing/dcron/dcron.initd | 22 |
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} -} |
