diff options
author | James Golovich <james@gnuinter.net> | 2004-04-26 07:06:29 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-04-26 07:06:29 +0000 |
commit | 69f5623a031b740dcf04db3a1c78fe55d64b1d1c (patch) | |
tree | 3af356db4636db30be83e055d422aabf78a8bf5f /contrib/init.d | |
parent | 7567113e71f3a5e5642146ab7b524e46548db34b (diff) |
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
Diffstat (limited to 'contrib/init.d')
-rwxr-xr-x | contrib/init.d/rc.redhat.asterisk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/init.d/rc.redhat.asterisk b/contrib/init.d/rc.redhat.asterisk index bc421beb3..298d9641d 100755 --- a/contrib/init.d/rc.redhat.asterisk +++ b/contrib/init.d/rc.redhat.asterisk @@ -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=$? |