--- contrib/init.d/rc.debian.asterisk 2011-02-10 23:43:51.546789000 +0100 +++ contrib/init.d/rc.debian.asterisk 2011-02-28 13:42:55.465630673 +0100 @@ -132,9 +132,12 @@ $0 start # "restart|force-reload" starts Asterisk and returns 0 even if Asterisk was stopped (as LSB expects). ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac