From: Leif Madsen Date: Tue, 17 May 2011 12:39:37 +0000 (+0000) Subject: Make Debian init script lsb compliant X-Git-Tag: 1.8.5-rc1~11^2~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e93fa0bba4db6779deccca046119862ddb660fa5;p=thirdparty%2Fasterisk.git Make Debian init script lsb compliant (closes issue #18896) Reported by: manwe Patches: debian_init_lsb.patch uploaded by manwe (license 1223) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@319365 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/contrib/init.d/rc.debian.asterisk b/contrib/init.d/rc.debian.asterisk index 3d06f9556b..c21ce176e7 100755 --- a/contrib/init.d/rc.debian.asterisk +++ b/contrib/init.d/rc.debian.asterisk @@ -132,9 +132,12 @@ case "$1" in $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