Bug 72400 - rc script for dnsmasq that has no "reload" option.
Bug#: 72400 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: avenj@gentoo.org Reported By: stephane@gorfou.ca
Component: Ebuilds
URL: 
Summary: rc script for dnsmasq that has no "reload" option.
Keywords:  Inclusion
Status Whiteboard: 
Opened: 2004-11-24 14:59 0000
Description:   Opened: 2004-11-24 14:59 0000
dnsmasq can receive a SIGHUP to fluch it's cache and reload the config files
while still resolvinf name.  The stop/start approach will temporarely leave the
network with no dns server.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Bel Zébute 2004-11-24 15:02:11 0000 -------
Created an attachment (id=44678) [details]
/etc/init.d/dnsmasq

Maybe there's a better way to do this.

------- Comment #2 From basic 2005-08-24 06:08:22 0000 -------
probably something along the lines of 

kill -HUP `cat /var/run/dnsmasq.pid`

is what you are looking for.

------- Comment #3 From Daniel Black 2005-12-29 02:24:51 0000 -------
Looks weird but this also works

start-stop-daemon --stop -s HUP -p /var/run/dnsmasq.pid

------- Comment #4 From Jon Portnoy (RETIRED) 2006-01-07 17:39:59 0000 -------
Whoa, ancient bug.. Fixed now, no revision bump since I think most of our
dnsmasq users are capable of using killall -HUP ;)

Sorry about the delay, bug mail tends to get lost