Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 14:18:51 +1300
From:      Philip Murray <pmurray@nevada.net.nz>
To:        Ladislav Bodnar <distro.watch@msa.hinet.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Rotating web server logs without restarting Apache
Message-ID:  <11EEE0FE-A7DC-4585-BF05-6FE3B73D5D97@nevada.net.nz>
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
On 25/11/2005, at 1:45 PM, Ladislav Bodnar wrote:
> 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).

Look at sysutils/cronolog in ports. Apache logs to cronolog via a  
pipe and cronolog will do rotation for you without needing to restart  
Apache.

Cheers

Phil



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11EEE0FE-A7DC-4585-BF05-6FE3B73D5D97>