On Fri, 24 Mar 2017 13:38:17 -0400 (EDT) Petr Mensik <pemen...@redhat.com> wrote:
> Hi! > > 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 > -- > Petr Menšík > Software Engineer > Red Hat, http://www.redhat.com/ > email: pemen...@redhat.com PGP: 65C6C973 > you could also just put "exec >/var/log/whatever 2>&1" at the start of your script. hell, you can even do "exec > >(logger) 2>&1" if you want. _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss