blob: dca81a263ee122fbbd567454a2b1c5035e92a16b [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
8ExecStart=@SBINDIR@/haproxy-systemd-wrapper -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
13
14[Install]
15WantedBy=multi-user.target