Package: mailgraph
Version: 1.14-9
Severity: wishlist
Tags: patch

Here is a patch to support the "status" action in the init.d script of
mailgraph.
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mailgraph (1.14-9.1) UNRELEASED; urgency=low
+
+  * Add support for "status" action to init.d script
+
+ -- Peter Eisentraut <pet...@debian.org>  Thu, 22 Dec 2011 19:07:16 +0200
+
 mailgraph (1.14-9) unstable; urgency=low
 
   * Fix patch to set default location of rrd files (Closes: #617411) 
--- a/debian/mailgraph.init
+++ b/debian/mailgraph.init
@@ -57,12 +57,15 @@
                 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

Reply via email to