aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc/dnsmasq
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.misc/dnsmasq')
-rw-r--r--init.d.misc/dnsmasq8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.d.misc/dnsmasq b/init.d.misc/dnsmasq
index b068c877..f4ff121b 100644
--- a/init.d.misc/dnsmasq
+++ b/init.d.misc/dnsmasq
@@ -29,8 +29,16 @@ command_args=${dnsmasq_args}
pidfile=/var/run/dnsmasq.pid
required_files=/usr/local/etc/dnsmasq.conf
+extra_started_commands="reload"
+
depend() {
provide dns
need localmount net
after bootmisc
}
+
+reload() {
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
+ eend $?
+}