diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-08-19 18:55:24 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-08-19 18:55:24 +0200 |
commit | f92a23ef9ab8be59681e5b7ba627e399d89bce53 (patch) | |
tree | c086ecc75e99315047dcb4f3926fac3e88712288 /src/etc | |
parent | 1f880973e221b91ac843a27d2e4c0b3de1880b97 (diff) | |
download | vyos-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')
-rw-r--r-- | src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf | 11 |
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 |