Marc-Antoine Perennou | f825580 | 2013-02-13 09:28:50 +0100 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=HAProxy Load Balancer |
| 3 | After=network.target |
| 4 | |
| 5 | [Service] |
Kristoffer Grönlund | bce0a65 | 2014-10-09 16:51:29 +0200 | [diff] [blame^] | 6 | ExecStartPre=@SBINDIR@/haproxy -f /etc/haproxy/haproxy.cfg -c -q |
Marc-Antoine Perennou | f825580 | 2013-02-13 09:28:50 +0100 | [diff] [blame] | 7 | ExecStart=@SBINDIR@/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid |
| 8 | ExecReload=/bin/kill -USR2 $MAINPID |
Apollon Oikonomopoulos | 1f24e3f | 2014-10-08 15:14:41 +0300 | [diff] [blame] | 9 | KillMode=mixed |
Marc-Antoine Perennou | f825580 | 2013-02-13 09:28:50 +0100 | [diff] [blame] | 10 | Restart=always |
| 11 | |
| 12 | [Install] |
| 13 | WantedBy=multi-user.target |