diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-02-07 10:25:48 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-02-07 10:25:48 +0000 |
commit | 7f2483dac12564023571edef48bfa912009c6d5e (patch) | |
tree | d9732b0739f1a7d80ba5682d4aacf9ab5df8ef9e /data | |
parent | fc1be4c2b49f2237e8eeadccf32fd517d97b3b97 (diff) | |
download | vyos-1x-7f2483dac12564023571edef48bfa912009c6d5e.tar.gz vyos-1x-7f2483dac12564023571edef48bfa912009c6d5e.zip |
T5586: Improve systemd keepalived override file
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/vrrp/10-override.conf.j2 | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/data/templates/vrrp/10-override.conf.j2 b/data/templates/vrrp/10-override.conf.j2 index 4a16012b6..dd0216d23 100644 --- a/data/templates/vrrp/10-override.conf.j2 +++ b/data/templates/vrrp/10-override.conf.j2 @@ -2,14 +2,10 @@ {% 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= +# Only start if there is our configuration file 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 }} |