]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: systemd: Check configuration before start
authorKristoffer Grönlund <krig@koru.se>
Thu, 9 Oct 2014 14:51:29 +0000 (16:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Oct 2014 18:01:09 +0000 (20:01 +0200)
Adds a configuration check before starting the haproxy service.

contrib/systemd/haproxy.service.in

index 0bc54204226693f523521cef474e0d147ccf4afa..85937e41e06379d2bb374dd83b06a128d1156573 100644 (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