update execreload to use bash -c

This commit is contained in:
Jeremy Hinegardner 2012-02-19 17:57:09 -07:00
parent 8497ace486
commit 876b150a3a

View File

@ -1,13 +1,13 @@
[Unit] [Unit]
Description=HAProxy For TCP And HTTP Based Applications Description=HAProxy For TCP And HTTP Based Applications
After=nsyslog.target etwork.target After=syslog.target network.target
[Service] [Service]
Type=forking Type=forking
PIDFile=/run/haproxy.pid PIDFile=/run/haproxy.pid
ExecStartPre=/usr/sbin/haproxy -c -q -f /etc/haproxy/haproxy.cfg ExecStartPre=/usr/sbin/haproxy -c -q -f /etc/haproxy/haproxy.cfg
ExecStart=/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid ExecStart=/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid
ExecReload=/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $MAINPID ExecReload=/bin/bash -c "exec /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $MAINPID"
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target