Date: Thu, 15 Apr 2010 12:26:29 +0200 From: =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= <freebsd-questions@pp.dyndns.biz> To: freebsd-questions@freebsd.org Subject: Re: Log rotation / newsyslog / apache not reloaded Message-ID: <4BC6E9D5.7050702@pp.dyndns.biz> In-Reply-To: <4BC6E58E.12367.3389FE7@z.szalbot.lcwords.com> References: <4BC6B286.16120.2714AA3@z.szalbot.lcwords.com> <4BC6E58E.12367.3389FE7@z.szalbot.lcwords.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2010-04-15 12:08, Zbigniew Szalbot wrote: > On 15 Apr 2010 at 8:30, Zbigniew Szalbot wrote: > >> Hello, >> >> I have the following lines in my /etc/newsyslog.conf >> >> /var/log/*-access.log 644 30 * @T00 JCG >> /var/log/*-error.log 644 30 * @T00 JCG > > I added /var/run/httpd.pid at the end of both lines and will see if > that helps. > > Zbigniew Szalbot > Alternatively you can use sysutils/cronolog which will eliminate the need to restart Apache entirely. Apache's configuration file allows you to pipe your logs to sysutils/cronolog (or any other external program) which in turn can be configured to split the logs almost any way you like. This is very convenient, especially if you run many vhosts which normally will turn nywsyslog.conf into a mess. The man page explains it in detail. http://cronolog.org/download/cronolog.pdf Regards Morgan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BC6E9D5.7050702>