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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 12 20:59:20 2009 UTC (5 years, 7 months ago) by bangert
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
make log file configurable - bug #235212
(Portage version: 2.2_rc33/cvs/Linux i686)

1 #!/sbin/runscript
2 # Copyright 1999-2005 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,v 1.2 2005/09/14 02:52:28 vapier Exp $
5
6 depend() {
7 use logger clock hostname
8 provide cron
9 }
10
11 start() {
12 ebegin "Starting dcron"
13 /usr/sbin/crond ${DCRON_OPTS} >> ${DCRON_LOG:=/var/log/cron.log} 2>&1
14 eend $?
15 }
16
17 stop() {
18 ebegin "Stopping dcron"
19 start-stop-daemon --stop --quiet \
20 --pidfile /var/run/cron.pid --exec /usr/sbin/crond
21 local ret=$?
22 rm -f /var/run/cron.pid
23 eend ${ret}
24 }

  ViewVC Help
Powered by ViewVC 1.1.20