[Dnsmasq-discuss] Where does the complete dump go?

Simon Kelley simon at thekelleys.org.uk
Thu Jul 24 19:05:36 BST 2008


Paul Chambers wrote:
>
> [root at home logrotate.d]# cat /etc/logrotate.d/dnsmasq
> /var/log/dnsmasq.log {
>         daily
>         # missingok
>         rotate 7
>         compress
>         notifempty
>         postrotate
>           /usr/bin/kill -s SIGUSR2 `cat /var/run/dnsmasq.pid`
>         endscript
> }
> 

You should probably have delaycompress in there: Under some 
circumstances when it closes and re-opens the log files, dnsmasq can 
keep the old file open and continue to write to it for a couple of minutes.

(The exact cicumstance is when a TCP DNS connection is open, the process 
which is forked to handle the connection won't close and reopen. Such 
processes have strictly limited lifetime.)


Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list