[Dnsmasq-discuss] [PATCH] Logging of dhcp_script output

Petr Mensik pemensik at redhat.com
Fri Mar 24 17:38:17 GMT 2017


Some guys using dnsmasq in virtual machines and OpenStack use custom dhcp_script to manage leases of clients.
However they complain if there is anything wrong with them, then are just told broken pipe and no information.

We understand it should not produce any output under normal operation. But it would be really helpful if at least anything was visible in logs. Especially for errors happening under rare circumstances.
I have prepared patch to forward events from helper. It prevents SIGPIPE receiving if script does write anything. And logs it from dnsmasq.
It seems very handy to me.

It was not simple to forward it to main log. I would like opinions if it is useful or dangerous.
Do you consider it worth merging Simon?

Best Regards,
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com  PGP: 65C6C973

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Log-output-of-dhcp_script-called-from-handler.patch
Type: text/x-patch
Size: 6035 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20170324/93f0c69a/attachment.bin>

More information about the Dnsmasq-discuss mailing list