summaryrefslogtreecommitdiff
path: root/debian/mailgraph.init
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2011-12-23 20:45:28 +0100
committerJulien Valroff <julien@kirya.net>2011-12-23 20:45:28 +0100
commitf7924ed40f3d32d037f5b1d7f9f1e4ef551c50ac (patch)
treefb2b2b2a5c2c9d7edeb5ee9aa1eef60007328ecc /debian/mailgraph.init
parentf2ec03c9f6e2776ffc6ace051b2708d17f7a8d99 (diff)
Add support for "status" action to init.d script - thanks to Peter Eisentraut <petere@debian.org>
Diffstat (limited to 'debian/mailgraph.init')
-rw-r--r--debian/mailgraph.init5
1 files changed, 4 insertions, 1 deletions
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