X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=debian%2Fpazpar2.init;h=0844749f0ee6fa9f0c9aba6fc9e4c3780f18d8ad;hb=64dccf5757a22cedd3c21ca834e3e02f39dd0504;hp=73f0b054d2ebc2dbe23c56c2f18f0a0e2b5d77bd;hpb=e9b634358fec25ebdeeee0461705469d01c82c77;p=pazpar2-moved-to-github.git diff --git a/debian/pazpar2.init b/debian/pazpar2.init index 73f0b05..0844749 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) @@ -139,9 +145,11 @@ case "$1" in ;; esac ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; *) - #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac