From 16ad975b2de79f0fa9ae27940598658247bd3c5e Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 29 Nov 2007 16:23:59 +0000 Subject: Allow services to define which extra commands require the service to be started --- init.d.misc/dnsmasq | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'init.d.misc/dnsmasq') 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 $? +} -- cgit v1.2.3