Re: log rotation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Mendenhall
Date: Tuesday, May 15, 2007 - 12:11 pm

> If you don't mind a second or two of down time then you can use

I have a script which does the following:

+ rotates logs
+ calls apachectl stop (twice, with sleep 2 after each call)
+ calls apachectl stop and greps the output to make sure it is stopped
  (looks for 'not running')
+ if I don't find not running, pages me
+ run apachectl startssl

This is all in a wrapper script which then calls awstats
after a successful rotate and restart.

Works for us.

JohnM

-- 
john mendenhall
john@surfutopia.net
surf utopia
internet services
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
log rotation, Bambero, (Tue May 15, 10:10 am)
Re: log rotation, Przemyslaw Nowaczyk, (Tue May 15, 11:21 am)
Re: log rotation, Darrin Chandler, (Tue May 15, 11:40 am)
Re: log rotation, John Mendenhall, (Tue May 15, 12:11 pm)
Re: log rotation, Allie D., (Tue May 15, 12:18 pm)
Re: log rotation, Robert Zajda, (Tue May 15, 1:41 pm)
Re: log rotation, Robert Zajda, (Tue May 15, 1:42 pm)
Re: log rotation, Alex Thurlow, (Tue May 15, 1:54 pm)
Re: log rotation, Allie D., (Tue May 15, 2:26 pm)
Re: log rotation, Daniel Kertesz, (Tue May 15, 2:28 pm)