blob: 5f6c7d97612cfc9e5ffa9e3155ec9345d94b16f1 [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
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +01009ExecReload=/bin/kill -USR2 $MAINPID
Apollon Oikonomopoulos74f01692014-10-08 15:14:41 +030010KillMode=mixed
Marc-Antoine Perennouf8255802013-02-13 09:28:50 +010011Restart=always
12
13[Install]
14WantedBy=multi-user.target