2008-03-03 02:44:01 +05:30
|
|
|
#!@PREFIX@/sbin/runscript
|
2009-05-01 19:41:40 +05:30
|
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
2008-01-11 21:01:10 +05:30
|
|
|
# All rights reserved. Released under the 2-clause BSD license.
|
2007-11-23 17:38:25 +05:30
|
|
|
|
2008-03-03 02:44:01 +05:30
|
|
|
command=@PKG_PREFIX@/sbin/dnsmasq
|
2009-04-27 17:36:54 +05:30
|
|
|
command_args=$dnsmasq_args
|
2008-01-11 16:25:36 +05:30
|
|
|
pidfile=@VARBASE@/run/dnsmasq.pid
|
|
|
|
required_files=/etc/dnsmasq.conf
|
2007-11-23 17:38:25 +05:30
|
|
|
|
2007-11-29 21:53:59 +05:30
|
|
|
extra_started_commands="reload"
|
|
|
|
|
2008-01-11 17:48:05 +05:30
|
|
|
depend()
|
2011-01-17 15:19:07 +05:30
|
|
|
{
|
2007-11-23 17:38:25 +05:30
|
|
|
provide dns
|
|
|
|
need localmount net
|
|
|
|
after bootmisc
|
|
|
|
}
|
2007-11-29 21:53:59 +05:30
|
|
|
|
2008-01-11 17:48:05 +05:30
|
|
|
reload()
|
|
|
|
{
|
2009-04-27 17:36:54 +05:30
|
|
|
ebegin "Reloading $RC_SVCNAME"
|
|
|
|
start-stop-daemon --signal SIGHUP --pidfile "$pidfile"
|
2007-11-29 21:53:59 +05:30
|
|
|
eend $?
|
|
|
|
}
|