]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mworker/systemd: send STATUS over sd_notify
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 7 Jul 2022 12:00:36 +0000 (14:00 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 7 Jul 2022 12:48:46 +0000 (14:48 +0200)
commita46a99e98c6b3c45f809d66035a91f66115012e1
tree73ce6b8b52e0b6f7192d72d7a38ddc870cc697ca
parent887a2b5bc4a0d10be771a7ef65c38cc03f7e9abe
MEDIUM: mworker/systemd: send STATUS over sd_notify

The sd_notify API is not able to change the "Active:" line in "systemcl
status". However a message can still be displayed on a "Status: " line,
even if the service is still green and "active (running)".

When startup succeed the Status will be set to "Ready.", upon a reload
it will be set to "Reloading Configuration." If the configuration
succeed "Ready." again. However if the reload failed, it will be set to
"Reload failed!".

Keep in mind that the "Active:" line won't change upon a reload failure,
and will still be green.
src/haproxy.c