Add support for "status" action to init.d script
authorgregor herrmann <gregoa@debian.org>
Mon, 19 Dec 2011 18:51:30 +0000 (18:51 -0000)
committergregor herrmann <gregoa@debian.org>
Mon, 19 Dec 2011 18:51:30 +0000 (18:51 -0000)
Closes: #652671
debian/changelog
debian/iodine.iodined.init

index 15a4020ef75e99e977266cb104bd6c9dcd8549c8..9813e8f8365a6c41b86a320b480ba1abb99c103a 100644 (file)
@@ -1,3 +1,11 @@
+iodine (0.6.0~rc1-7) UNRELEASED; urgency=low
+
+  [ Peter Eisentraut ]
+  * Add support for "status" action to init.d script
+    Closes: #652671
+
+ -- gregor herrmann <gregoa@debian.org>  Mon, 19 Dec 2011 19:51:04 +0100
+
 iodine (0.6.0~rc1-6) unstable; urgency=low
 
   * New patch: cmdline-r-u.patch. Due to a missing "break", -r causes -u to
index 21f2db27c75517bdf463ad5f974cf8f9750cc15f..c766ea6be3d210007921921fe9a619f570e59bf7 100644 (file)
@@ -126,6 +126,9 @@ case "$1" in
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
        ;;
+  status)
+       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+       ;;
   restart|force-reload)
        log_daemon_msg "Restarting $DESC" "$NAME"
        do_stop
@@ -145,7 +148,7 @@ case "$1" in
        esac
        ;;
   *)
-       echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+       echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
        exit 3
        ;;
 esac