mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
MINOR: systemd: Perform sanity check on config before reload
This commit is contained in:
parent
cc23a79f34
commit
68535bddf3
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ After=network.target
|
|||
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
|
||||
ExecStartPre=@SBINDIR@/haproxy -f $CONFIG -c -q
|
||||
ExecStart=@SBINDIR@/haproxy-systemd-wrapper -f $CONFIG -p $PIDFILE
|
||||
ExecReload=@SBINDIR@/haproxy -f $CONFIG -c -q
|
||||
ExecReload=/bin/kill -USR2 $MAINPID
|
||||
KillMode=mixed
|
||||
Restart=always
|
||||
|
|
|
|||
Loading…
Reference in a new issue