#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init,v 1.8 2006/01/09 12:21:39 avenj Exp $ opts="${opts} reload" depend() { provide dns need net } start() { ebegin "Starting dnsmasq" /usr/sbin/dnsmasq -x /var/run/dnsmasq.pid ${DNSMASQ_OPTS} eend $? } stop() { ebegin "Stopping dnsmasq" start-stop-daemon --stop --quiet --pidfile /var/run/dnsmasq.pid eend $? } reload() { ebegin "Reloading dnsmasq" kill -HUP $(< /var/run/dnsmasq.pid) eend $? }