diff options
Diffstat (limited to 'net-dns/dnsmasq/files/dnsmasq-init')
-rw-r--r-- | net-dns/dnsmasq/files/dnsmasq-init | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net-dns/dnsmasq/files/dnsmasq-init b/net-dns/dnsmasq/files/dnsmasq-init index 46ea3db0dc32..38a684425768 100644 --- a/net-dns/dnsmasq/files/dnsmasq-init +++ b/net-dns/dnsmasq/files/dnsmasq-init @@ -1,7 +1,9 @@ #!/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.6 2004/07/14 23:23:32 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init,v 1.7 2006/01/08 01:39:02 avenj Exp $ + +opts="${opts} reload" depend() { provide dns @@ -19,3 +21,9 @@ stop() { start-stop-daemon --stop --quiet --pidfile /var/run/dnsmasq.pid eend $? } + +reload() { + ebegin "Reloading dnsmasq" + start-stop-daemon --stop -s HUP -p /var/run/dnsmasq.pid + eend $? +} |