diff -Nru bacula-2.2.8/debian/bacula-director-common.bacula-director.init bacula-2.2.8/debian/bacula-director-common.bacula-director.init --- bacula-2.2.8/debian/bacula-director-common.bacula-director.init 2008-03-21 18:52:50.000000000 +0100 +++ bacula-2.2.8/debian/bacula-director-common.bacula-director.init 2008-03-21 18:52:51.000000000 +0100 @@ -31,6 +31,7 @@ PIDFILE=/var/run/bacula/$NAME.$PORT.pid . /usr/share/bacula-common/common-functions +. /lib/lsb/init-functions create_var_run_dir get_pid() @@ -88,14 +89,22 @@ log_failure_msg "Not starting $DESC: disabled via /etc/bacula/do_not_run" exit 0 fi - log_daemon_msg -n "Starting $DESC: " - create_var_run_dir - if do_start ; log_daemon_msg -n "Starting $DESC: " ; fi + create_var_run_dir + log_daemon_msg "Starting $DESC:" + if do_start ; then + log_end_msg 0 + else + log_end_msg 1 + fi ;; stop) - log_daemon_msg "Stopping $DESC: " - do_stop + log_daemon_msg "Stopping $DESC: " + if do_start ; then + log_end_msg 0 + else + log_end_msg 1 + fi ;; reload) @@ -107,10 +116,8 @@ ;; restart|force-reload) - log_daemon_msg " Restarting $DESC $NAME..." - # redirect STDOUT so that it looks prettier :-) - do_stop - do_start + $0 stop + $0 start ;; *) diff -Nru /tmp/a6VOz5ytBS/bacula-2.2.8/debian/changelog /tmp/iYSPPqGhZd/bacula-2.2.8/debian/changelog --- bacula-2.2.8/debian/changelog 2008-03-21 18:52:50.000000000 +0100 +++ bacula-2.2.8/debian/changelog 2008-03-21 18:52:51.000000000 +0100 @@ -1,3 +1,11 @@ +bacula (2.2.8-5ubuntu4) hardy; urgency=low + + * Partial rewrite of init script for bacula-director-common (LP: #204145) + - includes LSB init functions + - fix for couple of typos + + -- Ante Karamatic Fri, 21 Mar 2008 18:46:07 +0100 + bacula (2.2.8-5ubuntu3) hardy; urgency=low * Fix typos in init scripts.