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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Apr 20 01:57:28 2005 UTC (9 years, 2 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -4 lines
need services -> use services #89554
(Portage version: 2.0.51.19)

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,v 1.1 2005/03/04 23:42:58 ciaranm Exp $
5
6 depend() {
7 use logger clock hostname
8 provide cron
9 }
10
11 start() {
12 ebegin "Starting dcron"
13 start-stop-daemon --start --quiet --exec /usr/sbin/crond \
14 -- >>/var/log/cron.log 2>&1
15 /usr/bin/pgrep -x -u 0 -P 1 crond > /var/run/cron.pid
16 eend $?
17 }
18
19 stop() {
20 ebegin "Stopping dcron"
21 start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid \
22 --exec /usr/sbin/crond
23 eend $?
24 }

  ViewVC Help
Powered by ViewVC 1.1.20