mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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:
		| @@ -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=$? | ||||
|   | ||||
		Reference in New Issue
	
	Block a user