summaryrefslogtreecommitdiff
path: root/src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-19 18:55:24 +0200
committerChristian Poessinger <christian@poessinger.com>2022-08-19 20:04:00 +0200
commit33db81f8055fa471d3b0b6cdf78c2a057c11a0fc (patch)
tree42e622e7e575240b50f6f090b07b97f13ce820da /src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf
parentdc0e468046bef4aef3ee81eec23c3703e0b5da85 (diff)
downloadvyos-1x-33db81f8055fa471d3b0b6cdf78c2a057c11a0fc.tar.gz
vyos-1x-33db81f8055fa471d3b0b6cdf78c2a057c11a0fc.zip
ethernet: T4538: fix wrong systemd unit used for EAPoL
When MACsec was bound to an ethernet interface and the underlaying source-interface got changed (even description only) this terminated the MACsec session running on top of it. The root cause is when EAPoL was implemented in commit d59354e52a8a7f we re-used the same systemd unit which is responsible for MACsec. That indeed lead to the fact that wpa_supplicant was always stopped when anything happened on the underlaying source-interface that was not related to EAPoL. (cherry picked from commit f92a23ef9ab8be59681e5b7ba627e399d89bce53)
Diffstat (limited to 'src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf')
-rw-r--r--src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf b/src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf
new file mode 100644
index 000000000..030b89a2b
--- /dev/null
+++ b/src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf
@@ -0,0 +1,11 @@
+[Unit]
+After=
+After=vyos-router.service
+
+[Service]
+WorkingDirectory=
+WorkingDirectory=/run/wpa_supplicant
+PIDFile=/run/wpa_supplicant/%I.pid
+ExecStart=
+ExecStart=/sbin/wpa_supplicant -c/run/wpa_supplicant/%I.conf -Dwired -P/run/wpa_supplicant/%I.pid -i%I
+ExecReload=/bin/kill -HUP $MAINPID