mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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.
This commit is contained in:
@@ -1737,7 +1737,7 @@ enum ast_module_reload_result ast_module_reload(const char *name)
|
||||
res = AST_MODULE_RELOAD_IN_PROGRESS;
|
||||
goto module_reload_exit;
|
||||
}
|
||||
ast_sd_notify("RELOAD=1");
|
||||
ast_sd_notify("RELOADING=1");
|
||||
ast_lastreloadtime = ast_tvnow();
|
||||
|
||||
if (ast_opt_lock_confdir) {
|
||||
|
Reference in New Issue
Block a user