From: Kristoffer Grönlund Date: Thu, 9 Oct 2014 14:51:29 +0000 (+0200) Subject: MINOR: systemd: Check configuration before start X-Git-Tag: v1.6-dev1~296 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91a9f1a2e1421a376a4b63f9342addd59cb2b244;p=thirdparty%2Fhaproxy.git MINOR: systemd: Check configuration before start Adds a configuration check before starting the haproxy service. --- diff --git a/contrib/systemd/haproxy.service.in b/contrib/systemd/haproxy.service.in index 0bc5420422..85937e41e0 100644 --- a/contrib/systemd/haproxy.service.in +++ b/contrib/systemd/haproxy.service.in @@ -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