openrc/init.d.misc/dnsmasq.in

25 lines
485 B
Plaintext
Raw Normal View History

#!@PREFIX@/sbin/runscript
2009-05-01 15:11:40 +01:00
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
2007-11-23 12:08:25 +00:00
command=@PKG_PREFIX@/sbin/dnsmasq
command_args=$dnsmasq_args
pidfile=@VARBASE@/run/dnsmasq.pid
required_files=/etc/dnsmasq.conf
2007-11-23 12:08:25 +00:00
extra_started_commands="reload"
2008-01-11 12:18:05 +00:00
depend()
{
2007-11-23 12:08:25 +00:00
provide dns
need localmount net
after bootmisc
}
2008-01-11 12:18:05 +00:00
reload()
{
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal SIGHUP --pidfile "$pidfile"
eend $?
}