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] |
Olivier Houchard | 2c9744f | 2017-04-09 16:28:10 +0200 | [diff] [blame] | 6 | # You can point the environment variable HAPROXY_STATS_SOCKET to a stats |
| 7 | # socket if you want seamless reloads. |
Pavlos Parissis | cc23a79 | 2016-06-14 13:28:20 +0200 | [diff] [blame] | 8 | Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" |
| 9 | ExecStartPre=@SBINDIR@/haproxy -f $CONFIG -c -q |
William Lallemand | a6cfa90 | 2017-06-01 17:38:58 +0200 | [diff] [blame] | 10 | ExecStart=@SBINDIR@/haproxy -W -f $CONFIG -p $PIDFILE |
Pavlos Parissis | 68535bd | 2016-06-15 10:20:31 +0200 | [diff] [blame] | 11 | ExecReload=@SBINDIR@/haproxy -f $CONFIG -c -q |
Marc-Antoine Perennou | f825580 | 2013-02-13 09:28:50 +0100 | [diff] [blame] | 12 | ExecReload=/bin/kill -USR2 $MAINPID |
Apollon Oikonomopoulos | 74f0169 | 2014-10-08 15:14:41 +0300 | [diff] [blame] | 13 | KillMode=mixed |
Marc-Antoine Perennou | f825580 | 2013-02-13 09:28:50 +0100 | [diff] [blame] | 14 | Restart=always |
William Lallemand | 6db884d | 2017-06-01 17:38:57 +0200 | [diff] [blame] | 15 | Type=forking |
Marc-Antoine Perennou | f825580 | 2013-02-13 09:28:50 +0100 | [diff] [blame] | 16 | |
| 17 | [Install] |
| 18 | WantedBy=multi-user.target |