From f7924ed40f3d32d037f5b1d7f9f1e4ef551c50ac Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Fri, 23 Dec 2011 20:45:28 +0100 Subject: Add support for "status" action to init.d script - thanks to Peter Eisentraut --- debian/changelog | 4 +++- debian/mailgraph.init | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2f73933..ed96188 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,10 @@ mailgraph (1.14-10) unstable; urgency=low * Add VCS fields * Update DEP-5 uri + * Add support for "status" action to init.d script - thanks to Peter + Eisentraut - -- Julien Valroff Sun, 18 Sep 2011 14:33:26 +0200 + -- Julien Valroff Fri, 23 Dec 2011 20:45:07 +0100 mailgraph (1.14-9) unstable; urgency=low diff --git a/debian/mailgraph.init b/debian/mailgraph.init index f1d0c26..20ca685 100644 --- a/debian/mailgraph.init +++ b/debian/mailgraph.init @@ -57,12 +57,15 @@ case "$1" in rm -f $PID_FILE log_end_msg $? ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; restart|force-reload) $0 stop $0 start ;; *) - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac -- cgit v1.2.3