]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: systemd wrapper: re-execute on SIGUSR2
authorApollon Oikonomopoulos <apoikos@debian.org>
Thu, 17 Apr 2014 13:39:28 +0000 (16:39 +0300)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2014 16:11:11 +0000 (18:11 +0200)
commitb3fce6ef4d1db7b87c3b7294088a5fe62ca2fe8e
tree72e6c8bb108099ccc3211dd1d2e5eabdcdb0e411
parent45ad91efa3c7fa4948bd67f4cacff6dca7e178c2
MINOR: systemd wrapper: re-execute on SIGUSR2

Re-execute the systemd wrapper on SIGUSR2 and before reloading HAProxy,
making it possible to load a completely new version of HAProxy
(including a new version of the systemd wrapper) gracefully.
Since the wrapper accepts no command-line arguments of its own,
re-execution is signaled using the HAPROXY_SYSTEMD_REEXEC environment
variable.

This is primarily intended to help seamless upgrades of distribution
packages.
src/haproxy-systemd-wrapper.c