#!/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"
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
reload() {
ebegin "Reloading ${RC_SVCNAME}"
- kill -HUP $(cat "${pidfile}")
+ kill -HUP "$(cat "${pidfile}")"
eend $?
}