2013-02-13 08:28:50 +00:00
|
|
|
[Unit]
|
|
|
|
Description=HAProxy Load Balancer
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2017-04-09 14:28:10 +00:00
|
|
|
# You can point the environment variable HAPROXY_STATS_SOCKET to a stats
|
|
|
|
# socket if you want seamless reloads.
|
2016-06-14 11:28:20 +00:00
|
|
|
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
|
|
|
|
ExecStartPre=@SBINDIR@/haproxy -f $CONFIG -c -q
|
2017-11-20 14:58:35 +00:00
|
|
|
ExecStart=@SBINDIR@/haproxy -Ws -f $CONFIG -p $PIDFILE
|
2016-06-15 08:20:31 +00:00
|
|
|
ExecReload=@SBINDIR@/haproxy -f $CONFIG -c -q
|
2013-02-13 08:28:50 +00:00
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
2014-10-08 12:14:41 +00:00
|
|
|
KillMode=mixed
|
2013-02-13 08:28:50 +00:00
|
|
|
Restart=always
|
2017-11-20 14:58:35 +00:00
|
|
|
Type=notify
|
2013-02-13 08:28:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|