summaryrefslogtreecommitdiff
path: root/src/systemd/wpa_supplicant-macsec@.service
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-01 19:46:17 +0200
committerChristian Poessinger <christian@poessinger.com>2022-08-01 19:46:17 +0200
commitb2ff1407330e383a9fff688376377efc534bcfbc (patch)
tree7fb9f4861b637a4cd6093da864bed21693a88d25 /src/systemd/wpa_supplicant-macsec@.service
parenta09359828e38c5b51a4579af16b5ea263a98233f (diff)
downloadvyos-1x-b2ff1407330e383a9fff688376377efc534bcfbc.tar.gz
vyos-1x-b2ff1407330e383a9fff688376377efc534bcfbc.zip
macsec: T4537: restart wpa_supplicant on error
Diffstat (limited to 'src/systemd/wpa_supplicant-macsec@.service')
-rw-r--r--src/systemd/wpa_supplicant-macsec@.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systemd/wpa_supplicant-macsec@.service b/src/systemd/wpa_supplicant-macsec@.service
index 93bebd9d9..39d0bf00b 100644
--- a/src/systemd/wpa_supplicant-macsec@.service
+++ b/src/systemd/wpa_supplicant-macsec@.service
@@ -9,7 +9,9 @@ RequiresMountsFor=/run
Type=simple
WorkingDirectory=/run/wpa_supplicant
PIDFile=/run/wpa_supplicant/%I.pid
-ExecStart=/sbin/wpa_supplicant -c/run/wpa_supplicant/%I.conf -Dmacsec_linux -i%I
+ExecStart=/sbin/wpa_supplicant -d -c/run/wpa_supplicant/%I.conf -Dmacsec_linux -i%I
+Restart=always
+RestartSec=2
[Install]
WantedBy=multi-user.target