summaryrefslogtreecommitdiff
path: root/data/templates/high-availability/10-override.conf.j2
blob: c153f09b498a4b4e81c52966294e1f9bce0c20b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### Autogenerated by ${vyos_conf_scripts_dir}/high-availability.py ###
{% set snmp = '--snmp' if vrrp.snmp is vyos_defined else '' %}
[Unit]
After=vyos-router.service
# Only start if there is our configuration file - remove Debian default
# config file from the condition list
ConditionFileNotEmpty=
ConditionFileNotEmpty=/run/keepalived/keepalived.conf

[Service]
KillMode=process
Type=simple
# Read configuration variable file if it is present
ExecStart=
ExecStart=/usr/sbin/keepalived --use-file /run/keepalived/keepalived.conf --pid /run/keepalived/keepalived.pid --dont-fork {{ snmp }}
PIDFile=/run/keepalived/keepalived.pid