summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-08-17 22:08:53 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-08-17 22:08:53 +0000
commit269cd845c7a2ce33064dded52a63bed29d0fea7b (patch)
tree4d6156e96f1a3cceabf76f0392737adaa5189ec9 /sys-apps/dcron
parentmade ping suid root (diff)
downloadhistorical-269cd845c7a2ce33064dded52a63bed29d0fea7b.tar.gz
historical-269cd845c7a2ce33064dded52a63bed29d0fea7b.tar.bz2
historical-269cd845c7a2ce33064dded52a63bed29d0fea7b.zip
new version of dcron for rc6
Diffstat (limited to 'sys-apps/dcron')
-rw-r--r--sys-apps/dcron/files/dcron-newinit16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/dcron/files/dcron-newinit b/sys-apps/dcron/files/dcron-newinit
new file mode 100644
index 000000000000..a1b9180f606c
--- /dev/null
+++ b/sys-apps/dcron/files/dcron-newinit
@@ -0,0 +1,16 @@
+#!/sbin/runscript
+
+SERVICE=dcron
+EXE="/usr/sbin/crond"
+
+start() {
+ ebegin "Starting ${SERVICE}"
+ start-stop-daemon --start --quiet --exec $EXE 1>&2
+ eend $? "Error starting ${SERVICE}."
+}
+
+stop() {
+ ebegin "Stopping ${SERVICE}"
+ start-stop-daemon --stop --quiet -u root -n $SERVICE 1>&2
+ eend $? "Error stopping ${SERVICE}."
+}