blob: 05bb7161daa5ada26b3e7bccc21b4e64f99ea42b [file] [log] [blame]
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +01001[Unit]
2Description=HAProxy Load Balancer
3After=network.target
4
5[Service]
Olivier Houchard2c9744f2017-04-09 16:28:10 +02006# You can point the environment variable HAPROXY_STATS_SOCKET to a stats
7# socket if you want seamless reloads.
Pavlos Parissiscc23a792016-06-14 13:28:20 +02008Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
9ExecStartPre=@SBINDIR@/haproxy -f $CONFIG -c -q
10ExecStart=@SBINDIR@/haproxy-systemd-wrapper -f $CONFIG -p $PIDFILE
Pavlos Parissis68535bd2016-06-15 10:20:31 +020011ExecReload=@SBINDIR@/haproxy -f $CONFIG -c -q
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +010012ExecReload=/bin/kill -USR2 $MAINPID
Apollon Oikonomopoulos74f01692014-10-08 15:14:41 +030013KillMode=mixed
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +010014Restart=always
15
16[Install]
17WantedBy=multi-user.target