]> git.ipfire.org Git - thirdparty/asterisk.git/commit
asterisk.c: Fix sending incorrect messages to systemd notify
authorIvan Poddubny <ivan.poddubny@gmail.com>
Sun, 5 May 2024 12:53:11 +0000 (14:53 +0200)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Mon, 6 May 2024 16:08:55 +0000 (16:08 +0000)
commit29675e3aab7d00c141976777a2373e26ede9851f
tree06ce05d27c793c611bb66ffe9e2f56de125a2073
parent7fc25285fa5179bbc0a11305039e1ac1fbef9d42
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.
main/asterisk.c
main/loader.c