The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
Author: Ralph Meijer 
Date:   26-01-00 15:40

Generally you don't want to send a HUP signal to
apache, but a USR1. This lets apache restart
gracefully, waiting for all clients to finish. You can
do this by adding 30 after the pidfile, which is the
number of SIGUSR1.

The problem with this is that it can take a while before
all clients are finished, which causes apache to have
the rotated log file still open while newsyslog is
compressing it. I'm not quite confident that this
preserves all log entries...

Also an additional B for the flags will keep newsyslog
from adding a line to the logfiles (old and new) when
it rotated. This is nice when you need to put the
logfiles through analog or webalizer.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Rotatelogs   new
Ralph Meijer 26-01-00 15:40 
 RE: Rotatelogs   new
Dan Langille 27-01-00 00:59 
 Re: Rotatelogs   new
Ellert 02-05-06 18:09 
 Re: Rotatelogs   new
Dan 02-05-06 18:14 
 Re: Rotatelogs   new
Dan 02-05-06 18:14 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum