net-dns/dnsmasq: Update the DHCP version of the init script as well
authorPatrick McLean <chutzpah@gentoo.org>
Wed, 7 Jun 2017 22:01:36 +0000 (15:01 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Wed, 7 Jun 2017 22:02:20 +0000 (15:02 -0700)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

net-dns/dnsmasq/files/dnsmasq-init-dhcp-r1

index f520d9327a56bbd4ce26490cbfd828c1a8bc2a20..b62630f7140b4756fc5cb6b6cca1d4be03bac7cd 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License, v2 or later
 
 extra_started_commands="reload"
@@ -7,7 +7,7 @@ extra_started_commands="reload"
 pidfile="/var/run/dnsmasq.pid"
 command="/usr/sbin/dnsmasq"
 command_args="-x ${pidfile} ${DNSMASQ_OPTS}"
-start_stop_daemon_args="--retry TERM/3/TERM/5"
+retry="TERM/3/TERM/5"
 
 depend() {
        provide dns
@@ -24,6 +24,6 @@ start_pre() {
 
 reload() {
        ebegin "Reloading ${RC_SVCNAME}"
-       kill -HUP $(cat "${pidfile}")
+       kill -HUP "$(cat "${pidfile}")"
        eend $?
 }