Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 13:26:07 +1100
From:      Michael Vince <mv@roq.com>
To:        Ladislav Bodnar <distro.watch@msa.hinet.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Rotating web server logs without restarting Apache
Message-ID:  <4386763F.9070507@roq.com>
In-Reply-To: <200511250845.43542.distro.watch@msa.hinet.net>
References:  <200511250845.43542.distro.watch@msa.hinet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Ladislav Bodnar wrote:

>Hi,
>
>Every time my httpd-access.log file is rotated I need to restart Apache, 
>otherwise it won't write into the new httpd-access.log file.
>
>Is there a way for Apache (version 2.0.55 on FreeBSD 6.0) to write to the 
>new log file without the need to restart it? I restart it routinely from a 
>cron job, but occasionally Apache fails to restart (or more precisely, if 
>fails to shutdown completely before it is told to come up again).
>
>Thank you very much for your help.
>_______________________________________________
>  
>
Maybe I am missing something here but can't you use rotatelogs?
I use it to rotate logs every day with apache2 and I never restart Apache.

Mike




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4386763F.9070507>