blob: 81b4951df2b94e76c51e1b85e6adda6799a38297 [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
William Lallemanda6cfa902017-06-01 17:38:58 +020010ExecStart=@SBINDIR@/haproxy -W -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
William Lallemand6db884d2017-06-01 17:38:57 +020015Type=forking
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +010016
17[Install]
18WantedBy=multi-user.target