[Dnsmasq-discuss] log rotation (was Logging and OpenDNS ...)

Simon Kelley simon at thekelleys.org.uk
Wed Mar 28 09:43:46 BST 2007


Carlos Carvalho wrote:
> Simon Kelley (simon at thekelleys.org.uk) wrote on 27 March 2007 12:32:
>  >The next release includes the ability to log direct to  a file, without
>  >using syslog at all: that might help you there.
> 
> Good! Please, include the ability of closing and reopening the file
> when receiving a signal, so that we can rotate logs without restarting
> dnsmasq.

It's not very easy to do this, because dnsmasq drops root, so it no
longer has the permissions to close and reopen the file. I tested it
using the logrotate "copytruncate" option, and it works fine, without
this facility.

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list