MINOR: systemd: Perform sanity check on config before reload

This commit is contained in:
Pavlos Parissis 2016-06-15 10:20:31 +02:00 committed by Willy Tarreau
parent cc23a79f34
commit 68535bddf3
1 changed files with 1 additions and 0 deletions

View File

@ -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