Hi Tim,
On Thu, Aug 19, 2021 at 12:22:25PM +0200, Tim Düsterhus wrote:
>
> The config check should prevent HAProxy from going into wait mode when
> the config is bad on a reload. If I am not mistaken it's not possible to
> recover from wait mode without a full restart, no?
>
Well, this line is not used for the reload, but only for the start. For
the reload the first ExecReload line is used:
ExecReload=@SBINDIR@/haproxy -Ws -f $CONFIG -c -q $EXTRAOPTS
ExecReload=/bin/kill -USR2 $MAINPID
The purpose of this reload line is only to return a status code to
systemd during a reload, because kill can't achieve that. It's not
really a problem to be in "wait" mode, if you do a reload again with a
working configuration it will be in a normal state. The wait mode is
just a state where the master only supervise the previous workers and
couldn't fork new workers.
--
William Lallemand