From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 31AF91393F1 for ; Tue, 15 Sep 2015 15:41:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24E3821C02D; Tue, 15 Sep 2015 15:41:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CF4B21C02D for ; Tue, 15 Sep 2015 15:41:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4E737340A99 for ; Tue, 15 Sep 2015 15:41:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 027291FD for ; Tue, 15 Sep 2015 15:41:04 +0000 (UTC) From: "Julian Ospald" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julian Ospald" Message-ID: <1442331615.a1caf33ff9b18692b73acb925371658a57794ad0.hasufell@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/znc/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-irc/znc/files/znc.initd-r1 X-VCS-Directories: net-irc/znc/files/ X-VCS-Committer: hasufell X-VCS-Committer-Name: Julian Ospald X-VCS-Revision: a1caf33ff9b18692b73acb925371658a57794ad0 X-VCS-Branch: master Date: Tue, 15 Sep 2015 15:41:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d77d7b06-398c-4d50-b54c-aaed5957f445 X-Archives-Hash: 51f68fbc7209703d0921aa59d51e30b5 commit: a1caf33ff9b18692b73acb925371658a57794ad0 Author: Julian Ospald gentoo org> AuthorDate: Tue Sep 15 15:12:13 2015 +0000 Commit: Julian Ospald gentoo org> CommitDate: Tue Sep 15 15:40:15 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1caf33f net-irc/znc: improve quoting in init file net-irc/znc/files/znc.initd-r1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net-irc/znc/files/znc.initd-r1 b/net-irc/znc/files/znc.initd-r1 index 903a4fe..a6ef740 100644 --- a/net-irc/znc/files/znc.initd-r1 +++ b/net-irc/znc/files/znc.initd-r1 @@ -6,7 +6,7 @@ extra_commands="config" extra_started_commands="reload save" command="/usr/bin/znc" -command_args="--datadir ${ZNC_DATADIR}" +command_args="--datadir \"${ZNC_DATADIR}\"" pidfile="${ZNC_PIDFILE:-/run/znc/znc.pid}" user=${ZNC_USER:-znc} group=${ZNC_GROUP:-znc} @@ -20,21 +20,21 @@ depend() { } start_pre() { - checkpath -d -m 0770 -o ${user}:${group} $(dirname ${pidfile}) + checkpath -d -m 0770 -o ${user}:${group} "$(dirname ${pidfile})" } stop_post() { - rm -f ${pidfile} + rm -f "${pidfile}" } reload() { ebegin "Reloading ZNC Configuration File from Disk" - start-stop-daemon --signal SIGHUP --pidfile ${pidfile} + start-stop-daemon --signal SIGHUP --pidfile "${pidfile}" eend $? } save() { ebegin "Saving ZNC Configuration File to Disk" - start-stop-daemon --signal SIGUSR1 --pidfile ${pidfile} + start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}" eend $? }