Package: bacula-director-common
Severity: Normal
Version: 2.4.4-1
Tags: patch
Change to /etc/init.d/bacula-director to use
/etc/default/bacula-director to enable/disable the daemon.
--- bacula-director 2009-05-22 14:33:38.000000000 -0700
+++ /etc/init.d/bacula-director 2009-03-18 17:27:01.000000000 -0700
@@ -87,7 +87,14 @@
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-director ]; then
+ . /etc/default/bacula-director
fi
+ if [ "x$ENABLED" != "xyes" ]; then
+ echo "Not starting $DESC: disabled via
/etc/default/bacula-director"
+ exit 1
+ fi
+
echo -n "Starting $DESC: "
create_var_run_dir
if do_start ; then echo "$NAME."
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org