[Dnsmasq-discuss] dnsmasq isn't happy when log file reaches 2GB?
Matthias Andree
matthias.andree at gmx.de
Fri Apr 4 08:52:50 BST 2008
Wayne Sherman <wsherman at gmail.com> writes:
> 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.
There's always ulimit (some shells call it limit) where you can
configure maximum file sizes according to your specific desires.
--
Matthias Andree
More information about the Dnsmasq-discuss
mailing list