[Dnsmasq-discuss] dnsmasq isn't happy when log file reaches 2GB?
Simon Kelley
simon at thekelleys.org.uk
Sat Mar 29 17:59:11 GMT 2008
Wayne Sherman wrote:
> Simon Kelley wrote:
> >>> On Fri, Mar 28, 2008 at 1:34 AM, Paul Chambers <bod at bod.org> wrote:
> >>>> Does dnsmasq have a problem when the file it's logging to reaches two
> >>>> gigabytes?
> >
> > Looks like, on Linux, we need to open the file with O_LARGEFILE. From
> > "man 2 open":
> ...
> > I'll add the fix.
>
> Are you sure you want to allow log files to grow without limit? Without
> some kind of notification or error message, the log file could have
> grown to fill up the entire partition. I think a 2 gig limit is more
> than reasonable for a log file limit. If it gets that big, there is
> likely something wrong or misconfigured anyway.
It would be useful to have a limit, but keeping one which is a result of
a bug, and only applies under Linux, and maybe only under 32-bit Linux,
and is an arbitrary size, and which breaks dnsmasq when it's reached is
not good.
I think that logrotate/syslogd maybe are probably better places to solve
the problem.
Cheers
Simon.
>
> Regards,
>
> Wayne Sherman
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list