Make redhat init.d script call asterisk to reload instead of forcing a restart (bug...
authorJames Golovich <james@gnuinter.net>
Mon, 26 Apr 2004 07:06:29 +0000 (07:06 +0000)
committerJames Golovich <james@gnuinter.net>
Mon, 26 Apr 2004 07:06:29 +0000 (07:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2770 65c4cc65-6c06-0410-ace0-fbb531ad65f3

contrib/init.d/rc.redhat.asterisk

index bc421be..298d964 100755 (executable)
@@ -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=$?