From owner-freebsd-stable Sun Dec 2 14:16:11 2001 Delivered-To: freebsd-stable@freebsd.org Received: from pt-quorum.com (pt-quorum.com [209.10.167.210]) by hub.freebsd.org (Postfix) with ESMTP id 84C2137B41C for ; Sun, 2 Dec 2001 14:15:54 -0800 (PST) Received: from gw.tex.bogus (d179147.avr.PT.KPNQwest.net [193.126.179.147]) by pt-quorum.com (Postfix) with ESMTP id D8B45ECCE; Sun, 2 Dec 2001 22:15:20 +0000 (WET) Received: by gw.tex.bogus (Postfix, from userid 1000) id AE0CE5FB6; Sun, 2 Dec 2001 22:16:18 +0000 (WET) Date: Sun, 2 Dec 2001 22:16:18 +0000 From: Nuno Teixeira To: Christopher Elkins Cc: Leo De Geer , freebsd-stable@freebsd.org Subject: Re: problem with apache log Message-ID: <20011202221618.GB438@gw.tex.bogus> Mail-Followup-To: Nuno Teixeira , Christopher Elkins , Leo De Geer , freebsd-stable@freebsd.org References: <20011201185253.A65582@tlon.lan.scardini.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011201185253.A65582@tlon.lan.scardini.com> User-Agent: Mutt/1.3.23.2i X-Operating-System: FreeBSD 4.4-STABLE Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Dec 01, 2001 at 06:52:53PM -0800, Christopher Elkins wrote: : On Sat, Dec 01, 2001 at 09:00:31PM +0100, Leo De Geer wrote: : > : > Il get problem whit the access log every time the log turns over. I'm : > using the newsyslog.conf and the line fore the log is : > : > /var/log/httpd/httpd-access.log 644 7 * @T10 : > Z : > : > after turn over I need to restart the apache to get it to log in the : > new file : : You need to add the file containing Apache's pid, i.e., something like the : following: : : /var/log/httpd/httpd-access.log 644 7 * @T10 Z /var/run/httpd.pid : : -- : Christopher Elkins : : To Unsubscribe: send mail to majordomo@FreeBSD.org : with "unsubscribe freebsd-stable" in the body of the message Hello, Apache logs are a litle exception to newsyslog. You can't compress this logs, you need to do in newsyslog.conf something like: ... /var/log/apache/httpd-error.log 640 3 3000 * B /var/run/httpd.pid 30 /var/log/apache/httpd-access.log 640 7 100000 * B /var/run/httpd.pid 30 ... where 30 is a SIGHUP signal. You can read the full article at http://www.freebsddiary.org/rotatelogs.php Bye, -- Nuno Teixeira pt-quorum.com /* PGP Public Key: http://www.pt-quorum.com/pgp/nunoteixeira.asc Key fingerprint: 8C2C B364 D4DC 0C92 56F5 CE6F 8F07 720A 63A0 4FC7 */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message