dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 319365 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r319365 | lmadsen | 2011-05-17 07:39:37 -0500 (Tue, 17 May 2011) | 6 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@319366 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
lmadsen 2011-05-17 12:40:02 +00:00
parent 884d180def
commit 571ab4acb2
1 changed files with 4 additions and 1 deletions

View File

@ -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