Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72400 - rc script for dnsmasq that has no "reload" option.
Summary: rc script for dnsmasq that has no "reload" option.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jon Portnoy (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-11-24 14:59 UTC by Bel Zébute
Modified: 2006-01-07 17:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/init.d/dnsmasq (dnsmasq,600 bytes, text/plain)
2004-11-24 15:02 UTC, Bel Zébute
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bel Zébute 2004-11-24 14:59:43 UTC
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 Bel Zébute 2004-11-24 15:02:11 UTC
Created attachment 44678 [details]
/etc/init.d/dnsmasq

Maybe there's a better way to do this.
Comment 2 basic 2005-08-24 06:08:22 UTC
probably something along the lines of 

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

is what you are looking for.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-12-29 02:24:51 UTC
Looks weird but this also works

start-stop-daemon --stop -s HUP -p /var/run/dnsmasq.pid
Comment 4 Jon Portnoy (RETIRED) gentoo-dev 2006-01-07 17:39:59 UTC
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