rc.dnsmasq restart messages
Hi friends,
I am using Slackware current, shouldn't the 'rc.dnsmasq' not display stop and start message when we restart the service? It would be informative and useful to the user. Thank you. |
Yes, very interesting, don't see the benefit personally, but feel free to write the thing and propose a patch.
Problem's that the manual notes different signals doing very different things, for example: Code:
When it receives a SIGHUP, dnsmasq clears its cache and then re-loads /etc/hosts and /etc/ethers and any file given by --dhcp-hostsfile, --dhcp-hostsdir, --dhcp-optsfile, Real fix for this situation would be to make multiple new functions in rc.dnsmasq, one for each supported signal, and only then make it echo a different message for each of them. If rc.dnsmasq restart just kills the server and starts another one, the message is correct. If you don't agree, just make it echo whatever message you want on restart function, it's easy enough. |
'/etc/rc.d/rc.dnsmasq stop' (or restart) now kills any program called dnsmasq. Let's kill the process with PID in /var/run/dnsmasq.pid, if it's called dnsmasq:
Code:
--- rc.dnsmasq.orig 2006-01-31 22:51:05.000000000 +0200 |
All times are GMT -5. The time now is 11:41 AM. |