diff --git a/debian/init b/debian/init index 28b6c9d0511ba87c122379356b90e84968f3c309..10c3e94b1fa44d2925a63ca06558e4ef9a6eb9ef 100644 --- a/debian/init +++ b/debian/init @@ -26,8 +26,10 @@ GROUP=root # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 -# Load the VERBOSE setting and other rcS variables +# Load various rcS variables . /lib/init/vars.sh +# Override the VERBOSE variable so we always have feedback messages +VERBOSE=yes # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present @@ -109,20 +111,20 @@ case "$1" in # If the "reload" option is implemented then remove the # 'force-reload' alias # - log_daemon_msg "Restarting $DESC" "$NAME" + [ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in - 0) log_end_msg 0 ;; - 1) log_end_msg 1 ;; # Old process is still running - *) log_end_msg 1 ;; # Failed to start + 0) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 1) [ "$VERBOSE" != no ] && log_end_msg 1 ;; # Old process is still running + *) [ "$VERBOSE" != no ] && log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop - log_end_msg 1 + [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;;