You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-process/dcron/files/dcron

25 lines
514 B

#!/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 $?
}