@jsumners wrote:
I am updating https://github.com/jsumners/haproxy-rhel7 and want to provide seamless reloads in the default configuration. I am unclear about reloading with multiple stats sockets. Let’s assume we have two stats sockets
/run/haproxy.sock1
and/run/haproxy.sock2
. Would we do the following for a reload?> haproxy -c -f /etc/haproxy.cfg -q -x /run/haproxy.sock1 -x /run/haproxy.sock2 > kill -USR2 $(cat /run/haproxy.pid)
Or do we only have to specify the first socket?
Additionally, the documentation suggests using
-sf $(cat /run/haproxy.pid)
for gracefully terminating old processes. I do not know if this is possible with systemd (without a custom startup script). Will-sf
simply read a file specified without having tocat
it?
Posts: 1
Participants: 1