]> 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)
committerIvan Poddubny <ivan.poddubny@gmail.com>
Mon, 6 May 2024 16:08:53 +0000 (16:08 +0000)
commitd7e638f2c37149f2d7040b8ee0575fc22f7f5d58
tree9a8abfc0dbfabda5334e187834fb4b6f0272ee90
parent5b9da1213ca0a55a1be0d349a5cfa515560ac4ea
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