From owner-freebsd-questions Mon Aug 6 17:22:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tao.agoron.com (tao.agoron.com [206.181.233.66]) by hub.freebsd.org (Postfix) with ESMTP id 0949537B405 for ; Mon, 6 Aug 2001 17:22:24 -0700 (PDT) (envelope-from marius@agoron.com) Received: from quasi (quasi.shredco.com [206.181.233.73]) by tao.agoron.com (8.9.3/8.9.3) with SMTP id UAA06914; Mon, 6 Aug 2001 20:22:15 -0400 (EDT) From: "Marius Kirschner" To: "Jonathan Chen" Cc: "FreeBSD Questions" Subject: RE: rotating web logs Date: Mon, 6 Aug 2001 20:22:15 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20010807092006.C59676@itouchnz.itouch> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks to all who let me know about the newsyslog command. That's what I was looking for... ---Marius > -----Original Message----- > From: Jonathan Chen [mailto:jonathan.chen@itouch.co.nz] > Sent: Monday, August 06, 2001 5:20 PM > To: Marius Kirschner > Cc: FreeBSD Questions > Subject: Re: rotating web logs > > > On Mon, Aug 06, 2001 at 03:48:01PM -0400, Marius Kirschner wrote: > > I was wondering, what do people use to rotate the apache web logs? I > > noticed there a "rotatelogs" command but this one doesn't work from the > > command line apparenly and I'd like to schedule a cron job to do that. > > Thanks, > > The base system has a utility called newsyslog(8) that works fine. > Edit /etc/newsyslog.conf and add entries something like: > > /var/log/httpd-access.log 644 5 200 * - > /var/run/httpd.pid > /var/log/httpd-error.log 644 5 200 * - > /var/run/httpd.pid > > to it. > -- > Jonathan Chen > ---------------------------------------------------------------------- > Opportunities are seldom labeled > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message