openrc/init.d.misc/dnsmasq.in

25 lines
411 B
Plaintext
Raw Normal View History

2007-11-23 17:38:25 +05:30
#!/sbin/runscript
# Copyright 2007-2008 Roy Marples
2007-11-23 17:38:25 +05:30
# All rights reserved
command=@PREFIX@/sbin/dnsmasq
2007-11-23 17:38:25 +05:30
command_args=${dnsmasq_args}
pidfile=@VARBASE@/run/dnsmasq.pid
required_files=/etc/dnsmasq.conf
2007-11-23 17:38:25 +05:30
extra_started_commands="reload"
2008-01-11 17:48:05 +05:30
depend()
{
2007-11-23 17:38:25 +05:30
provide dns
need localmount net
after bootmisc
}
2008-01-11 17:48:05 +05:30
reload()
{
ebegin "Reloading ${SVCNAME}"
start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
eend $?
}