public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] wpa_supplicant: Allow systemd to reload the daemon.
Date: Sat, 26 Aug 2017 10:18:59 +0200	[thread overview]
Message-ID: <20170826081859.2962-1-stefan.schantl@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1788 bytes --]

* 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(a)ipfire.org>
---
 wpa_supplicant/systemd/wpa_supplicant(a).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

diff --git a/wpa_supplicant/systemd/wpa_supplicant(a).service b/wpa_supplicant/systemd/wpa_supplicant(a).service
index 3c41490..7907310 100644
--- a/wpa_supplicant/systemd/wpa_supplicant(a).service
+++ b/wpa_supplicant/systemd/wpa_supplicant(a).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/
-- 
2.9.4


             reply	other threads:[~2017-08-26  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-26  8:18 Stefan Schantl [this message]
2017-08-29 14:31 ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170826081859.2962-1-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox