wpa_supplicant: Allow systemd to reload the daemon.

Message ID 20170826081859.2962-1-stefan.schantl@ipfire.org
State Accepted
Commit 929f6938c6691de6ee4c303d4129e6ac7ffe0659
Headers
Series wpa_supplicant: Allow systemd to reload the daemon. |

Commit Message

Stefan Schantl Aug. 26, 2017, 6:18 p.m. UTC
  * Add the required command to the systemd service file to allow
systemd to reload the running instances of wpa_supplicant.

* Also drop config file for logrotate, which is not needed anymore.

Fixes #11479.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 wpa_supplicant/systemd/wpa_supplicant@.service | 1 +
 wpa_supplicant/wpa_supplicant.logrotate        | 6 ------
 wpa_supplicant/wpa_supplicant.nm               | 2 +-
 3 files changed, 2 insertions(+), 7 deletions(-)
 delete mode 100644 wpa_supplicant/wpa_supplicant.logrotate

-- 
2.9.4
  

Patch

diff --git a/wpa_supplicant/systemd/wpa_supplicant@.service b/wpa_supplicant/systemd/wpa_supplicant@.service
index 3c41490..7907310 100644
--- a/wpa_supplicant/systemd/wpa_supplicant@.service
+++ b/wpa_supplicant/systemd/wpa_supplicant@.service
@@ -3,6 +3,7 @@  Description=wpa_supplicant for %I.
 
 [Service]
 ExecStart=/usr/lib/network/helpers/wpa_supplicant %I
+ExecReload=/bin/kill -HUP $MAINPID
 PIDFile=/run/wpa_supplicant-%I.pid
 Restart=on-failure
 UtmpIdentifier=%I
diff --git a/wpa_supplicant/wpa_supplicant.logrotate b/wpa_supplicant/wpa_supplicant.logrotate
deleted file mode 100644
index bd7ef91..0000000
--- a/wpa_supplicant/wpa_supplicant.logrotate
+++ /dev/null
@@ -1,6 +0,0 @@ 
-/var/log/wpa_supplicant.log {
-    missingok
-    notifempty
-    size 30k
-    create 0600 root root
-}
diff --git a/wpa_supplicant/wpa_supplicant.nm b/wpa_supplicant/wpa_supplicant.nm
index aeb5011..80307cd 100644
--- a/wpa_supplicant/wpa_supplicant.nm
+++ b/wpa_supplicant/wpa_supplicant.nm
@@ -5,7 +5,7 @@ 
 
 name       = wpa_supplicant
 version    = 2.6
-release    = 1
+release    = 2
 
 groups     = Sytem/Base
 url        = http://hostap.epitest.fi/releases/