From patchwork Sat Aug 26 18:18:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 1393 Return-Path: Received: from mail01.ipfire.org by mail01.ipfire.org (Dovecot) with LMTP id Uw45LActoVn8ewAAmDronw ; Sat, 26 Aug 2017 10:10:47 +0200 Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 6E9D924A9; Sat, 26 Aug 2017 10:10:46 +0200 (CEST) Received: from tuxedo.stevee (unknown [46.125.250.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 8BC92135E; Sat, 26 Aug 2017 10:10:43 +0200 (CEST) From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] wpa_supplicant: Allow systemd to reload the daemon. Date: Sat, 26 Aug 2017 10:18:59 +0200 Message-Id: <20170826081859.2962-1-stefan.schantl@ipfire.org> X-Mailer: git-send-email 2.9.4 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" X-Evolution-Source: 1355867052.2751.5@hughes.tremer.info Mime-Version: 1.0 * 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 --- 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 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/