Package: bacula-sd
Severity: Normal
Version: 2.4.4-1
Tags: patch

Change to /etc/init.d/bacula-sd to use /etc/default/bacula-sd to enable/disable the daemon.

--- bacula-sd   2009-05-22 14:23:33.000000000 -0700
+++ /etc/init.d/bacula-sd       2009-03-31 04:48:13.000000000 -0700
@@ -38,6 +38,12 @@
       if [ -f /etc/bacula/do_not_run ]; then
echo "Not starting $DESC: disabled via /etc/bacula/do_not_run"
               exit 0
+    elif [ -r /etc/default/bacula-sd ]; then
+               . /etc/default/bacula-sd
+       fi
+       if [ "x$ENABLED" != "xyes" ]; then
+ echo "Not starting $DESC: disabled via /etc/default/bacula-sd"
+               exit 1
       fi

       echo -n "Starting $DESC: "





--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to