diff options
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=$? |