Package: haproxy / 1.5.8-3+deb8u2

haproxy.service-check-config-before-reload.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Apollon Oikonomopoulos
Description: Check the configuration before reloading HAProxy
 While HAProxy will survive a reload with an invalid configuration, explicitly
 checking the config file for validity will make "systemctl reload" return an
 error and let the user know something went wrong.

Forwarded: no
Last-Update: 2014-04-27
Index: haproxy/contrib/systemd/haproxy.service.in
===================================================================
--- haproxy.orig/contrib/systemd/haproxy.service.in
+++ haproxy/contrib/systemd/haproxy.service.in
@@ -8,6 +8,7 @@ Wants=syslog.service
 [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=@SBINDIR@/haproxy -c -f /etc/haproxy/haproxy.cfg
 ExecReload=/bin/kill -USR2 $MAINPID
 KillMode=mixed
 Restart=always