From owner-freebsd-stable Mon Dec 3 13:19:38 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 CDE4A37B405 for ; Mon, 3 Dec 2001 13:19:34 -0800 (PST) Received: from gw.tex.bogus (d179199.avr.PT.KPNQwest.net [193.126.179.199]) by pt-quorum.com (Postfix) with ESMTP id 468DAECA1; Mon, 3 Dec 2001 21:18:19 +0000 (WET) Received: by gw.tex.bogus (Postfix, from userid 1000) id C53055F06; Mon, 3 Dec 2001 21:18:08 +0000 (WET) Date: Mon, 3 Dec 2001 21:18:08 +0000 From: Nuno Teixeira To: Trond =?iso-8859-1?Q?Endrest=F8l?= Cc: Holger.Kipp@alogis.com, Nuno Teixeira , Christopher Elkins , Leo De Geer , freebsd-stable@FreeBSD.ORG Subject: Re: problem with apache log Message-ID: <20011203211807.GC513@gw.tex.bogus> Mail-Followup-To: Nuno Teixeira , Trond =?iso-8859-1?Q?Endrest=F8l?= , Holger.Kipp@alogis.com, Christopher Elkins , Leo De Geer , freebsd-stable@FreeBSD.ORG References: <20011202234027.A56590@intserv.int1.b.intern> <20011203004715.I37355-100000@ramstind.gtf.ol.no> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20011203004715.I37355-100000@ramstind.gtf.ol.no> 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 Mon, Dec 03, 2001 at 12:50:14AM +0100, Trond Endrestøl wrote: : On Sun, 2 Dec 2001 23:40+0100, Holger Kipp wrote: : : > On Sun, Dec 02, 2001 at 10:16:18PM +0000, Nuno Teixeira wrote: : > > 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 : > > 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. : > : > Hi, : > : > according to man newsyslog, SIGHUP is the default, so "30" is not needed. : > Furthermore, compression _does_ work over here without any problems. : : 30 is equal to SIGUSR1, and this signal tells Apache to gracefully : shutdown each child, reread the configuration file, reopen log files, : and finally forking off new children. : : SIGHUP is a bit more brutal, but you achieve the same. : : -- : ---------------------------------------------------------------------- : Trond Endrestøl | trond@ramstind.gtf.ol.no : Patron of The Art of Computer Programming| FreeBSD 3.5-S & Pine 4.33 : : Hello, I was wrong when I say that signal 30 is a SIGHUP. I made a mistake. 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