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] |
Pavlos Parissis | cc23a79 | 2016-06-14 13:28:20 +0200 | [diff] [blame^] | 6 | Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" |
| 7 | ExecStartPre=@SBINDIR@/haproxy -f $CONFIG -c -q |
| 8 | ExecStart=@SBINDIR@/haproxy-systemd-wrapper -f $CONFIG -p $PIDFILE |
Marc-Antoine Perennou | f825580 | 2013-02-13 09:28:50 +0100 | [diff] [blame] | 9 | ExecReload=/bin/kill -USR2 $MAINPID |
Apollon Oikonomopoulos | 74f0169 | 2014-10-08 15:14:41 +0300 | [diff] [blame] | 10 | KillMode=mixed |
Marc-Antoine Perennou | f825580 | 2013-02-13 09:28:50 +0100 | [diff] [blame] | 11 | Restart=always |
| 12 | |
| 13 | [Install] |
| 14 | WantedBy=multi-user.target |