aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc/dnsmasq
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-29 16:23:59 +0000
committerRoy Marples <roy@marples.name>2007-11-29 16:23:59 +0000
commit16ad975b2de79f0fa9ae27940598658247bd3c5e (patch)
tree0bff815da65564bcd98c8af95693f7b877ed57e5 /init.d.misc/dnsmasq
parent82df7e4584282896a0618f14cca2dd3f3d23e8a2 (diff)
Allow services to define which extra commands require the service to be started
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 $?
+}