]> 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 Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:47:40 +0000 (13:47 +0000)
commit3988aff68e4ee1629bb2581df791ef4107032738
tree5e4de64e27a6dbe655366c9c856c4ce796e41ebc
parent9efb9c7d45c1bef544de96d276f830f75a1b42e3
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 3e9922d3895c76f5e01afbe965a9d46245befd85)
main/asterisk.c
main/loader.c