aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.misc')
-rw-r--r--init.d.misc/dnsmasq8
-rw-r--r--init.d.misc/named2
2 files changed, 9 insertions, 1 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 $?
+}
diff --git a/init.d.misc/named b/init.d.misc/named
index 7e853abe..901502a7 100644
--- a/init.d.misc/named
+++ b/init.d.misc/named
@@ -27,7 +27,7 @@ command=/usr/sbin/named
command_args=${named_args}
pidfile=/var/run/named/pid
name="Domain Name server"
-extra_commands="reload"
+extra_started_commands="reload"
namedb=/etc/namedb
named_uid=${named_uid:-bind}