2012-02-20 00:29:09 +00:00
|
|
|
[Unit]
|
2014-08-06 18:04:20 +00:00
|
|
|
Description=HAProxy Load Balancer
|
2012-02-20 00:57:09 +00:00
|
|
|
After=syslog.target network.target
|
2012-02-20 00:29:09 +00:00
|
|
|
|
|
|
|
[Service]
|
2017-05-01 17:04:03 +00:00
|
|
|
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
|
|
|
|
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q
|
|
|
|
ExecStart=/usr/sbin/haproxy-systemd-wrapper -f $CONFIG -p $PIDFILE
|
|
|
|
ExecReload=/usr/sbin/haproxy -f $CONFIG -c -q
|
2014-08-06 18:04:20 +00:00
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
2017-05-01 17:04:03 +00:00
|
|
|
KillMode=mixed
|
2012-02-20 00:29:09 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|