Hi Patrick,

On Fri, Apr 26, 2019 at 02:55:30PM -0400, Patrick Hemmer wrote:
> One other consideration is a problem I've been looking to address, and
> that's better reloads. Right now the systemd unit sends a signal for the
> reload, but sending a signal gets no feedback on whether the reload
> operation was successful or not.
> 
> I haven't thought about this a whole lot, but I'm thinking the way to
> address it would be some sort of inquiry to the master process, which means
> using the socket. So if the systemd unit file ensured that the master socket
> is available, then ExecReload could be adjusted to use it and get
> success/failure feedback.

A very long time ago I wanted to make haproxy itself be usable as a CLI
client. Nowadays with socat available everywhere it's pointless, but it
could at least be used to give a few orders to the master like "reload",
"stop" or any such thing. Just like you can reload squid using
"squid -k reconfigure" if my memory serves me right. The advantage here
is that it would require no other tool and would know its own protocol.

Willy

Reply via email to