2013-12-21 14:51:11 -06:00
|
|
|
#!@SBINDIR@/openrc-run
|
2015-12-04 16:52:19 -06:00
|
|
|
# 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 12:08:25 +00:00
|
|
|
|
2008-03-02 21:14:01 +00:00
|
|
|
command=@PKG_PREFIX@/sbin/dnsmasq
|
2009-04-27 12:06:54 +00:00
|
|
|
command_args=$dnsmasq_args
|
2017-12-20 11:01:29 -06:00
|
|
|
pidfile=/var/run/dnsmasq.pid
|
2008-01-11 10:55:36 +00:00
|
|
|
required_files=/etc/dnsmasq.conf
|
2007-11-23 12:08:25 +00:00
|
|
|
|
2007-11-29 16:23:59 +00:00
|
|
|
extra_started_commands="reload"
|
|
|
|
|
2008-01-11 12:18:05 +00:00
|
|
|
depend()
|
2011-01-17 04:49:07 -05:00
|
|
|
{
|
2007-11-23 12:08:25 +00:00
|
|
|
provide dns
|
|
|
|
need localmount net
|
|
|
|
after bootmisc
|
|
|
|
}
|
2007-11-29 16:23:59 +00:00
|
|
|
|
2008-01-11 12:18:05 +00:00
|
|
|
reload()
|
|
|
|
{
|
2009-04-27 12:06:54 +00:00
|
|
|
ebegin "Reloading $RC_SVCNAME"
|
|
|
|
start-stop-daemon --signal SIGHUP --pidfile "$pidfile"
|
2007-11-29 16:23:59 +00:00
|
|
|
eend $?
|
|
|
|
}
|