/[gentoo-x86]/sys-process/dcron/files/dcron.init-4.5
Gentoo

Contents of /sys-process/dcron/files/dcron.init-4.5

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon May 16 20:28:54 2011 UTC (3 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Version bump #366991 by Alec Moskvin.

(Portage version: 2.2.0_alpha32/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2011 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron.init-4.4,v 1.1 2010/10/26 07:07:10 vapier Exp $
5
6 depend() {
7 use logger clock hostname
8 provide cron
9 }
10
11 start() {
12 ebegin "Starting ${SVCNAME}"
13 /usr/sbin/crond ${DCRON_OPTS}
14 eend $?
15 }
16
17 stop() {
18 ebegin "Stopping ${SVCNAME}"
19 start-stop-daemon --stop --quiet \
20 --pidfile /var/run/crond.pid --exec /usr/sbin/crond
21 local ret=$?
22 rm -f /var/run/crond.pid
23 eend ${ret}
24 }

  ViewVC Help
Powered by ViewVC 1.1.20