[Dnsmasq-discuss] Where does the complete dump go?
Paul Chambers
bod at bod.org
Thu Jul 24 19:10:57 BST 2008
Added. Thanks for the warning. -- Paul
Simon Kelley wrote:
> Paul Chambers wrote:
>>
>> [root at home logrotate.d]# cat /etc/logrotate.d/dnsmasq
>> /var/log/dnsmasq.log {
>> daily
>> # missingok
>> rotate 7
>> compress
>> delaycompress
>> 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