2022-08-28 10:50:17 -04:00
|
|
|
[Unit]
|
|
|
|
|
Description=he Reliable, High Performance TCP/HTTP Load Balancer
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=forking
|
2022-08-28 23:32:29 -04:00
|
|
|
ExecStartPre={$SERVER_PATH}/haproxy/sbin/haproxy -c -f {$SERVER_PATH}/haproxy/haproxy.conf
|
2022-08-29 00:08:02 -04:00
|
|
|
ExecStart={$SERVER_PATH}/haproxy/sbin/haproxy -D -f {$SERVER_PATH}/haproxy/haproxy.conf
|
2022-08-28 23:32:29 -04:00
|
|
|
ExecReload={$SERVER_PATH}/haproxy/sbin/haproxy -f {$SERVER_PATH}/haproxy/haproxy.conf -c -q
|
2022-08-28 10:50:17 -04:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|