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:
parent
7567113e71
commit
69f5623a03
|
@ -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=$?
|
||||
|
|
Loading…
Reference in New Issue