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?

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 to cat it?

I don’t see why you would need multiple stats sockets. 1 socket should suffice.

jsumners:

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 to cat it?

I appreciate you taking time to respond, but I’m having a difficult time seeing any answers in your response. When running multiple instances via nbproc one should have a corresponding socket for each process, unless I am mistaken. And I do know where the documentation is located. My questions stem directly from reading the documentation. It is not clear on the subject of these questions.