Fix LSB/HS conformance for /etc/init.d/pazpar2 PAZ-904
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 18 Nov 2013 12:44:40 +0000 (13:44 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 18 Nov 2013 12:44:40 +0000 (13:44 +0100)
Debian: add support for /etc/init.d/pazpar2 status

debian/pazpar2.init

index 495b930..0844749 100644 (file)
@@ -145,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