mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	asterisk.c: Fix sending incorrect messages to systemd notify
Send "RELOADING=1" instead of "RELOAD=1" to follow the format
expected by systemd (see sd_notify(3) man page).
Do not send STOPPING=1 in remote console mode:
attempting to execute "asterisk -rx" by the main process leads to
a warning if NotifyAccess=main (the default) or to a forced termination
if NotifyAccess=all.
(cherry picked from commit 3e9922d389)
			
			
This commit is contained in:
		
				
					committed by
					
						 Asterisk Development Team
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							9efb9c7d45
						
					
				
				
					commit
					3988aff68e
				
			| @@ -2050,7 +2050,7 @@ static void really_quit(int num, shutdown_nice_t niceness, int restart) | ||||
| 		run_cleanups = 0; | ||||
| 	} | ||||
|  | ||||
| 	if (!restart) { | ||||
| 	if (!restart && !ast_opt_remote) { | ||||
| 		ast_sd_notify("STOPPING=1"); | ||||
| 	} | ||||
| 	if (ast_opt_console || (ast_opt_remote && !ast_opt_exec)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user