add bugs to changelog
[debian/iodine.git] / debian / iodine.iodined.init
index 21f2db27c75517bdf463ad5f974cf8f9750cc15f..79839a7ee1ac710aced3c4ac0b555f5d6a143e3a 100644 (file)
@@ -1,7 +1,7 @@
 #! /bin/sh
 ### BEGIN INIT INFO
 # Provides:          iodined
-# Required-Start:    $remote_fs $network $syslog
+# Required-Start:    $remote_fs $network $syslog $named
 # Required-Stop:     $remote_fs $network $syslog
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
@@ -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