MINOR: systemd: Check configuration before start

Adds a configuration check before starting the haproxy service.
This commit is contained in:
Kristoffer Grnlund 2014-10-09 16:51:29 +02:00 committed by Willy Tarreau
parent 06cc905813
commit 91a9f1a2e1

View File

@ -3,6 +3,7 @@ Description=HAProxy Load Balancer
After=network.target
[Service]
ExecStartPre=@SBINDIR@/haproxy -f /etc/haproxy/haproxy.cfg -c -q
ExecStart=@SBINDIR@/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid
ExecReload=/bin/kill -USR2 $MAINPID
KillMode=mixed