diff options
author | Christian Breunig <christian@breunig.cc> | 2023-01-14 21:19:45 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-01-14 21:19:45 +0100 |
commit | da015473559f88e604b27ba66a2f4a9f95425bb2 (patch) | |
tree | 7c18c4efe690f81ed2d6de924b228507640611fc /src/conf_mode/service_sla.py | |
parent | f570fce12e8675a66ef8a24e2e600c687475ebe7 (diff) | |
download | vyos-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/service_sla.py')
-rwxr-xr-x | src/conf_mode/service_sla.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/conf_mode/service_sla.py b/src/conf_mode/service_sla.py index e7c3ca59c..b1e22f37b 100755 --- a/src/conf_mode/service_sla.py +++ b/src/conf_mode/service_sla.py @@ -27,15 +27,13 @@ from vyos import ConfigError from vyos import airbag airbag.enable() - owamp_config_dir = '/etc/owamp-server' owamp_config_file = f'{owamp_config_dir}/owamp-server.conf' -systemd_override_owamp = r'/etc/systemd/system/owamp-server.d/20-override.conf' +systemd_override_owamp = r'/run/systemd/system/owamp-server.d/20-override.conf' twamp_config_dir = '/etc/twamp-server' twamp_config_file = f'{twamp_config_dir}/twamp-server.conf' -systemd_override_twamp = r'/etc/systemd/system/twamp-server.d/20-override.conf' - +systemd_override_twamp = r'/run/systemd/system/twamp-server.d/20-override.conf' def get_config(config=None): if config: |