summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-02 11:05:39 +0200
committerChristian Poessinger <christian@poessinger.com>2022-08-02 11:05:39 +0200
commitff080c487718506bee0b22155eb1ed725ecb5720 (patch)
tree099f71864a17ebe793816020fe56d68af7b44587
parentfa25d349aebc86e43957f37db765787fb7e431db (diff)
downloadvyos-1x-ff080c487718506bee0b22155eb1ed725ecb5720.tar.gz
vyos-1x-ff080c487718506bee0b22155eb1ed725ecb5720.zip
hostap: T4584: add Debian specific options to systemd unit files
-rw-r--r--src/etc/systemd/system/wpa_supplicant@.service.d/override.conf3
-rw-r--r--src/systemd/wpa_supplicant-macsec@.service1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/systemd/system/wpa_supplicant@.service.d/override.conf b/src/etc/systemd/system/wpa_supplicant@.service.d/override.conf
index a895e675f..5cffb7987 100644
--- a/src/etc/systemd/system/wpa_supplicant@.service.d/override.conf
+++ b/src/etc/systemd/system/wpa_supplicant@.service.d/override.conf
@@ -7,4 +7,5 @@ WorkingDirectory=
WorkingDirectory=/run/wpa_supplicant
PIDFile=/run/wpa_supplicant/%I.pid
ExecStart=
-ExecStart=/sbin/wpa_supplicant -c/run/wpa_supplicant/%I.conf -Dnl80211,wext -i%I
+ExecStart=/sbin/wpa_supplicant -c/run/wpa_supplicant/%I.conf -Dnl80211,wext -P/run/wpa_supplicant/%I.pid -i%I
+ExecReload=/bin/kill -HUP $MAINPID
diff --git a/src/systemd/wpa_supplicant-macsec@.service b/src/systemd/wpa_supplicant-macsec@.service
index d5739583e..ffb4fe32c 100644
--- a/src/systemd/wpa_supplicant-macsec@.service
+++ b/src/systemd/wpa_supplicant-macsec@.service
@@ -10,6 +10,7 @@ Type=simple
WorkingDirectory=/run/wpa_supplicant
PIDFile=/run/wpa_supplicant/%I.pid
ExecStart=/sbin/wpa_supplicant -c/run/wpa_supplicant/%I.conf -Dmacsec_linux -P/run/wpa_supplicant/%I.pid -i%I
+ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=2