2013-12-22 02:21:11 +05:30
|
|
|
#!@SBINDIR@/openrc-run
|
2015-12-05 04:22:19 +05:30
|
|
|
# Copyright (c) 2007-2015 The OpenRC Authors.
|
|
|
|
# See the Authors file at the top-level directory of this distribution and
|
|
|
|
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
|
|
|
|
#
|
|
|
|
# This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
# the LICENSE file found in the top-level directory of this
|
|
|
|
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
|
|
|
|
# This file may not be copied, modified, propagated, or distributed
|
|
|
|
# except according to the terms contained in the LICENSE file.
|
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 $?
|
|
|
|
}
|