Hi, Please consider merging the attached patch which instructs systemd to run a sanity check on the configuration before the reload. If you accept the patch then you have to apply it on top the '[PATCH] MINOR: systemd: Use variable for config and pidfile paths'.
Cheers, Pavlos
From 1296d3489d6b7503e357118b3ffefdd437640ea6 Mon Sep 17 00:00:00 2001 From: Pavlos Parissis <pavlos.paris...@booking.com> Date: Wed, 15 Jun 2016 10:20:31 +0200 Subject: [PATCH] MINOR: systemd: Perform sanity check on config before reload --- contrib/systemd/haproxy.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/systemd/haproxy.service.in b/contrib/systemd/haproxy.service.in index 5f6c7d9..dca81a2 100644 --- a/contrib/systemd/haproxy.service.in +++ b/contrib/systemd/haproxy.service.in @@ -6,6 +6,7 @@ After=network.target Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" ExecStartPre=@SBINDIR@/haproxy -f $CONFIG -c -q ExecStart=@SBINDIR@/haproxy-systemd-wrapper -f $CONFIG -p $PIDFILE +ExecReload=@SBINDIR@/haproxy -f $CONFIG -c -q ExecReload=/bin/kill -USR2 $MAINPID KillMode=mixed Restart=always -- 2.1.4
signature.asc
Description: OpenPGP digital signature