From owner-freebsd-questions Sun Aug 18 4: 9:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F13C37B400 for ; Sun, 18 Aug 2002 04:09:22 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EAC943E4A for ; Sun, 18 Aug 2002 04:09:21 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7IB9FQI002672; Sun, 18 Aug 2002 12:09:15 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7IB990a002671; Sun, 18 Aug 2002 12:09:09 +0100 (BST) Date: Sun, 18 Aug 2002 12:09:09 +0100 From: Matthew Seaman To: sroberts@dsl.pipex.com Cc: FreeBSD Questions Subject: Re: How to add service to log in newsyslog.conf? Message-ID: <20020818110909.GC2079@happy-idiot-talk.infracaninophi> References: <1029631750.38776.229.camel@Demon.vickiandstacey.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1029631750.38776.229.camel@Demon.vickiandstacey.com> User-Agent: Mutt/1.5.1i 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 Sun, Aug 18, 2002 at 01:49:08AM +0100, Stacey Roberts wrote: > Its all working fine, but I would like to have newsyslog manage to log > files generated (define rotation schedule, log-size limitation, etc). > Could someone please advise me on doing this? Err... You just add more lines to /etc/newsyslog.conf --- the newsyslog(1) man page explains the syntax quite clearly. So, to cycle the ftpd log every Friday at 5.00pm, and keep the previous 4 old logfiles compressed with gzip(1) (ie. ftpd.0.gz, ftpd.1.gz, ftpd.2.gz ftpd.3.gz) add a line: /var/log/ftpd 644 3 * $W5D17 Z That's all there is to it. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message