diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-10-31 17:24:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 17:24:19 +0000 |
commit | 67d65b70c2d63c86fa0dc63e8720d332dc3b6643 (patch) | |
tree | 6a1bf0c52c9cf09916bf81d7a687ae31e2c408e4 /data | |
parent | ab98f66de7ee115fed89c5304b99cc7bcbecbbcc (diff) | |
parent | 5a6938a2e14373dfaa72211fe18deeb257d3ba12 (diff) | |
download | vyos-1x-67d65b70c2d63c86fa0dc63e8720d332dc3b6643.tar.gz vyos-1x-67d65b70c2d63c86fa0dc63e8720d332dc3b6643.zip |
Merge pull request #2310 from sever-sever/T5586-eq
T5586: Disable by default SNMP for Keeplived VRRP service
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/vrrp/10-override.conf.j2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data/templates/vrrp/10-override.conf.j2 b/data/templates/vrrp/10-override.conf.j2 new file mode 100644 index 000000000..4a16012b6 --- /dev/null +++ b/data/templates/vrrp/10-override.conf.j2 @@ -0,0 +1,16 @@ +### Autogenerated by ${vyos_conf_scripts_dir}/vrrp.py ### +{% set snmp = '--snmp' if snmp is 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 |