Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Nov 2005 22:29:59 -0500 (EST)
From:      Darren Henderson <darren@nighttide.net>
To:        Ladislav Bodnar <distro.watch@msa.hinet.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Rotating web server logs without restarting Apache
Message-ID:  <20051124222759.H32161@olmec>
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 Fri, 25 Nov 2005, Ladislav Bodnar wrote:

> 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.

Use apache's logrotate if you never want to stop apache.

If you don't mind the restart you can use newsyslog to role the logs - 
I've never had it fail to keep apache going.

-Darren

______________________________________________________________________
Darren Henderson                                  darren@nighttide.net

                    Help fight junk e-mail, visit http://www.cauce.org/



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