24 lines
514 B
Text
24 lines
514 B
Text
#!/sbin/runscript
|
|
# Copyright 1999-2005 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
depend() {
|
|
use logger clock hostname
|
|
provide cron
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting dcron"
|
|
start-stop-daemon --start --quiet --exec /usr/sbin/crond \
|
|
-- >>/var/log/cron.log 2>&1
|
|
/usr/bin/pgrep -x -u 0 -P 1 crond > /var/run/cron.pid
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping dcron"
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid \
|
|
--exec /usr/sbin/crond
|
|
eend $?
|
|
}
|