Make redhat init.d script call asterisk to reload instead of forcing a restart (bug 1481)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich 2004-04-26 07:06:29 +00:00
parent 7567113e71
commit 69f5623a03
1 changed files with 8 additions and 1 deletions

View File

@ -36,7 +36,14 @@ case "$1" in
status asterisk
RETVAL=$?
;;
restart|reload)
reload)
echo -n "Reloading asterisk: "
asterisk -r -x reload > /dev/null 2>&1
RETVAL=$?
[ $RETVAL -eq 0 ] && success || failure
echo
;;
restart)
$0 stop
$0 start
RETVAL=$?