diff --git a/main/asterisk.c b/main/asterisk.c index 35ac9fe965f42a2d65de286a15b75912259e95bc..04b030bbfce4486fac0fd0c00806a0ef8ac80fee 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2014,7 +2014,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)) { diff --git a/main/loader.c b/main/loader.c index 4c1b59d067d7616f00c8a3733bb2749de5321e81..9b97590806d1095d9841e69f88b755af95669774 100644 --- a/main/loader.c +++ b/main/loader.c @@ -1578,7 +1578,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) {