summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-03-04 23:42:58 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-03-04 23:42:58 +0000
commite5019015693c29a383f0d01f2cddbaa14fb8358b (patch)
tree8128d0a12b3d7f3e737af58d79f64af12ac1e5ef /sys-process/dcron/files/dcron-r4
parentMarked ppc stable for bug #84017. (diff)
downloadgentoo-2-e5019015693c29a383f0d01f2cddbaa14fb8358b.tar.gz
gentoo-2-e5019015693c29a383f0d01f2cddbaa14fb8358b.tar.bz2
gentoo-2-e5019015693c29a383f0d01f2cddbaa14fb8358b.zip
Move sys-apps/dcron -> sys-process/dcron
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-process/dcron/files/dcron-r4')
-rwxr-xr-xsys-process/dcron/files/dcron-r424
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-process/dcron/files/dcron-r4 b/sys-process/dcron/files/dcron-r4
new file mode 100755
index 000000000000..94072c8e5a51
--- /dev/null
+++ b/sys-process/dcron/files/dcron-r4
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron-r4,v 1.1 2005/03/04 23:42:58 ciaranm Exp $
+
+depend() {
+ use logger
+ need clock hostname
+ provide cron
+}
+
+start() {
+ ebegin "Starting dcron"
+ /usr/sbin/crond >> /var/log/cron.log 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping dcron"
+ start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid
+ local ret=$?
+ rm -f /var/run/cron.pid
+ eend ${ret}
+}