Fix LSB/HD conformance for /etc/init.d/metaproxy MP-500
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 18 Nov 2013 12:46:17 +0000 (13:46 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 18 Nov 2013 12:46:17 +0000 (13:46 +0100)
Debian: add support for /etc/init.d/metaproxy status

debian/metaproxy.init

index d5bc7d0..67743dd 100644 (file)
@@ -157,8 +157,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|status|restart|reload|force-reload}" >&2
        exit 3
        ;;
 esac