Skip to content
Snippets Groups Projects
Commit 69f5623a authored by James Golovich's avatar James Golovich
Browse files

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
parent 7567113e
Branches
Tags
No related merge requests found
......@@ -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=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment