Rotating web server logs without restarting Apache
Darren Henderson
darren at nighttide.net
Fri Nov 25 03:30:06 GMT 2005
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 at nighttide.net
Help fight junk e-mail, visit http://www.cauce.org/
More information about the freebsd-stable
mailing list