From owner-freebsd-questions Mon Aug 6 14:20:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 1351037B401 for ; Mon, 6 Aug 2001 14:20:40 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.11.3/8.11.1) id f76LK6N61869; Tue, 7 Aug 2001 09:20:06 +1200 (NZST) (envelope-from jonc) Date: Tue, 7 Aug 2001 09:20:06 +1200 From: Jonathan Chen To: Marius Kirschner Cc: FreeBSD Questions Subject: Re: rotating web logs Message-ID: <20010807092006.C59676@itouchnz.itouch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from marius@agoron.com on Mon, Aug 06, 2001 at 03:48:01PM -0400 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 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