On Monday 17 March 2008 08:30:17 am Beginner wrote:

> > Do you mean that the OS auto-upgraded something, or that you upgraded
> > something manually?  What exactly was upgraded?

> It looks like logrotate shutdown httpd and http failed to start after
> that. 

For reference, that seems to be caused by the debian (and derivatives) 
logrotate script to apache not actually waiting for apache to shutdown before 
trying to restart it. 

So it tells apache to shut down, rotates the logs and then tries to restart 
apache - but as apache hasn't actually finished shutting down it refuses to 
restart. 

How log apache takes to shut down depends on what you're doing with it, so I 
suspect this works with a simple apache config (as apache shuts down in time 
to be restarted), but doesn't work well with a more complex mod_perl setup 
where it takes longer to shut down.

The one debian based box I have to deal with ended up with a "sleep 30" in the 
log rotate script, but it's not a production box so a 30 second outage at 
midnight on a sunday isn't a problem. There are cleaner ways to handle this, 
it just wasn't worth it in my particular case.

Reply via email to