Package: fcron
Version: 3.0.1-1.3
Severity: wishlist
Tags: patch

Hi,

the attached patch adds a default file for fcron to pass additional
fcron options.

Hannes
--- /etc/init.d/fcron.orig      2008-10-29 12:22:35.000000000 +0100
+++ /etc/init.d/fcron   2009-09-21 20:56:28.000000000 +0200
@@ -22,9 +22,13 @@
 DAEMON=/usr/sbin/fcron
 NAME=fcron
 DESC="advanced periodic command scheduler"
+OPTIONS=""
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
 
 startdaemon () {
-    start-stop-daemon --start --quiet "$@" --pidfile /var/run/$NAME.pid --exec 
${DAEMON} -- -b
+    start-stop-daemon --start --quiet "$@" --pidfile /var/run/$NAME.pid --exec 
${DAEMON} -- -b $OPTIONS
 }
 
 stopdaemon () {
--- /etc/default/fcron.orig     1970-01-01 01:00:00.000000000 +0100
+++ /etc/default/fcron  2009-09-21 20:57:30.000000000 +0200
@@ -0,0 +1,5 @@
+# fcron default file
+
+# options to pass to fcron.
+# the -b option is always passed
+#OPTIONS="--firstsleep 300"

Reply via email to