summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_failover.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-01-14 21:19:45 +0100
committerChristian Breunig <christian@breunig.cc>2023-01-14 21:19:45 +0100
commitda015473559f88e604b27ba66a2f4a9f95425bb2 (patch)
tree7c18c4efe690f81ed2d6de924b228507640611fc /src/conf_mode/protocols_failover.py
parentf570fce12e8675a66ef8a24e2e600c687475ebe7 (diff)
downloadvyos-1x-da015473559f88e604b27ba66a2f4a9f95425bb2.tar.gz
vyos-1x-da015473559f88e604b27ba66a2f4a9f95425bb2.zip
systemd: T2185: always place generated override files in /run
This prevents any stale override files when the system is beeing rebooted, but the actual configuration was not saved. /run is a tmpfs and thus always fresh after boot.
Diffstat (limited to 'src/conf_mode/protocols_failover.py')
-rwxr-xr-xsrc/conf_mode/protocols_failover.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_failover.py b/src/conf_mode/protocols_failover.py
index 048ba7a89..85e984afe 100755
--- a/src/conf_mode/protocols_failover.py
+++ b/src/conf_mode/protocols_failover.py
@@ -31,7 +31,7 @@ airbag.enable()
service_name = 'vyos-failover'
service_conf = Path(f'/run/{service_name}.conf')
-systemd_service = '/etc/systemd/system/vyos-failover.service'
+systemd_service = '/run/systemd/system/vyos-failover.service'
rt_proto_failover = '/etc/iproute2/rt_protos.d/failover.conf'