[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Cooperating with logrotate



Scott McBrien wrote:
> Check out the logrotate for httpd in /etc/logrotate.d, it sounds like  
> what you need is a post rotate script like what apache uses.


Ah.  I think that works because when httpd receives a HUP its signal-
handler rewinds the logfile.  I can do that, though unfortunately
it will require a new release of my server code.  Oh well, them's
the breaks.

Thanks,

-- JK


> -Scott
> 
> On Nov 6, 2009, at 12:32 PM, JK <jknapka at kneuro.net> wrote:
> 
>> Hi folks,
>>
>> I have a very long-running server process that generates a lot of
>> log data over time. One instance is currently appending to a 9GB
>> logfile.  The server process opens the log file in "w" mode and
>> holds it open forever.

...