blob: 395b5d279e2ec969903bb795afe11368562ff3d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{% set haproxy_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
[Unit]
StartLimitIntervalSec=0
After=vyos-router.service
ConditionPathExists=/run/haproxy/haproxy.cfg
[Service]
EnvironmentFile=
Environment=
Environment="CONFIG=/run/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "EXTRAOPTS=-S /run/haproxy-master.sock"
ExecStart=
ExecStart={{ haproxy_command }}/usr/sbin/haproxy -Ws -f /run/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock
Restart=always
RestartSec=10
|