summaryrefslogtreecommitdiff
path: root/src/etc/systemd/system/wpa_supplicant-wired@.service.d
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 18:55:24 +0200
commitf92a23ef9ab8be59681e5b7ba627e399d89bce53 (patch)
treec086ecc75e99315047dcb4f3926fac3e88712288 /src/etc/systemd/system/wpa_supplicant-wired@.service.d
parent1f880973e221b91ac843a27d2e4c0b3de1880b97 (diff)
downloadvyos-1x-f92a23ef9ab8be59681e5b7ba627e399d89bce53.tar.gz
vyos-1x-f92a23ef9ab8be59681e5b7ba627e399d89bce53.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.
Diffstat (limited to 'src/etc/systemd/system/wpa_supplicant-wired@.service.d')
-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