From 95bbbb8bed92a60a320ff255c8b8656145f3c540 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 24 Jun 2021 19:40:36 +0200 Subject: ipsec: T3643: move swanctl.conf to /run This is the completion of commit 50a742b5 ("IPSec: T3643: Fix path for swanctl.conf file") that moves the generated swanctl file from non-volatile to a volatile (tmpfs backed) storage like we do for all out configuration files. Thus it is ensured after a reboot or service deprecation there are no accidential leftovers from previous configurations stored on the system. --- src/etc/systemd/system/ipsec.service.d/override.conf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/etc/systemd/system/ipsec.service.d/override.conf (limited to 'src/etc/systemd/system') diff --git a/src/etc/systemd/system/ipsec.service.d/override.conf b/src/etc/systemd/system/ipsec.service.d/override.conf new file mode 100644 index 000000000..e8c0872b5 --- /dev/null +++ b/src/etc/systemd/system/ipsec.service.d/override.conf @@ -0,0 +1,7 @@ +[Unit] +ConditionPathExists=/run/swanctl/swanctl.conf +After= +After=vyos-router.service + +[Service] +Environment="SWANCTL_DIR=/run/swanctl" -- cgit v1.2.3