blob: 804be3583c1a5709ca6e4007156148024d0bba0f [file] [log] [blame]
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +01001[Unit]
2Description=HAProxy Load Balancer
3After=network.target
4
5[Service]
Pavlos Parissiscc23a792016-06-14 13:28:20 +02006Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
7ExecStartPre=@SBINDIR@/haproxy -f $CONFIG -c -q
Tim Duesterhusd6942c82017-11-20 15:58:35 +01008ExecStart=@SBINDIR@/haproxy -Ws -f $CONFIG -p $PIDFILE
Pavlos Parissis68535bd2016-06-15 10:20:31 +02009ExecReload=@SBINDIR@/haproxy -f $CONFIG -c -q
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +010010ExecReload=/bin/kill -USR2 $MAINPID
Apollon Oikonomopoulos74f01692014-10-08 15:14:41 +030011KillMode=mixed
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +010012Restart=always
Tim Duesterhusd6942c82017-11-20 15:58:35 +010013Type=notify
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +010014
15[Install]
16WantedBy=multi-user.target