Message Board -  Archive

[ Login ] [ Create Account ]
[ Board List ] [ View Board ] [ Post Reply ]
  Author  Subject: logrotate question
Archive  

Posted on 11-17-2003 10:42 a.m. ET  reply

Original Poster: Paul Morawski <morawski@mitre.org>

All --

I saw Mark Krentel's recent article about logrotate and I have a
question. I maintain a web server that occasionally has long-running
CGIs (they can run for days). Occasionally, logrotate gets fired up and
bounces apache in the postrotate clause. Bye bye CGI...

Is there a way to insert a prerotate script to detect the presence of a
long-running CGI and then have that CGI abort the log rotation? I don't
see any option for conditional execution in the (Redhat) logrotate
documentation.

Any tips appreciated.

Thanks in advance. Responses by email appreciated.

Paul Morawski
The MITRE Corporation
morawski@mitre.org

< Previous 1 Next >

Site Contents