Debian Codegraph @

support/init.d.examples/dnsmasq.in

raw
1 #!@SBINDIR@/openrc-run
2 # Copyright (c) 2007-2015 The OpenRC Authors.
3 # See the Authors file at the top-level directory of this distribution and
4 # https://github.com/OpenRC/openrc/blob/HEAD/AUTHORS
5 #
6 # This file is part of OpenRC. It is subject to the license terms in
7 # the LICENSE file found in the top-level directory of this
8 # distribution and at https://github.com/OpenRC/openrc/blob/HEAD/LICENSE
9 # This file may not be copied, modified, propagated, or distributed
10 # except according to the terms contained in the LICENSE file.
11
12 command=/sbin/dnsmasq
13 command_args=$dnsmasq_args
14 pidfile=/var/run/dnsmasq.pid
15 required_files=/etc/dnsmasq.conf
16
17 extra_started_commands="reload"
18
19 depend()
20 {
21 provide dns
22 need localmount net
23 after bootmisc
24 }
25
26 reload()
27 {
28 ebegin "Reloading $RC_SVCNAME"
29 start-stop-daemon --signal SIGHUP --pidfile "$pidfile"
30 eend $?
31 }