From: Adam Dickmeiss Date: Thu, 8 Jul 2010 11:39:11 +0000 (+0200) Subject: Always log if init script fails to start or stop X-Git-Tag: v1.4.4~46^2~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1378db044206369f009a9b72e8d1185df15b118c;p=pazpar2-moved-to-github.git Always log if init script fails to start or stop The init.d script will log despite the value of VERBOSE if start-stop-daemon returns exit code 2. --- diff --git a/debian/pazpar2.init b/debian/pazpar2.init index 73f0b05..495b930 100644 --- a/debian/pazpar2.init +++ b/debian/pazpar2.init @@ -97,7 +97,10 @@ case "$1" in do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; - 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + 2) [ "$VERBOSE" = no ] && \ + log_daemon_msg "Starting $DESC" "$NAME" + log_end_msg 1 + ;; esac ;; stop) @@ -105,7 +108,10 @@ case "$1" in do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; - 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + 2) [ "$VERBOSE" = no ] && \ + log_daemon_msg "Stopping $DESC" "$NAME" + log_end_msg 1 + ;; esac ;; #reload|force-reload)