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.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=91a9f1a2e1421a376a4b63f9342addd59cb2b244;p=haproxy.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 0bc542042..85937e41e 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