From owner-freebsd-arch Fri Feb 14 17:34: 5 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9FF937B401; Fri, 14 Feb 2003 17:34:03 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19E5643FA3; Fri, 14 Feb 2003 17:34:03 -0800 (PST) (envelope-from wes@softweyr.com) Received: from salty.rapid.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id A897C433F5; Fri, 14 Feb 2003 17:33:29 -0800 (PST) From: Wes Peters Organization: Softweyr.com To: Garance A Drosihn , Thomas Quinot , Gordon Tetlow Subject: Re: syslog.conf syntax change (multiple program/host specifications) Date: Fri, 14 Feb 2003 17:33:29 -0800 User-Agent: KMail/1.5 Cc: Thomas Quinot , arch@FreeBSD.ORG References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302141100.23529.wes@softweyr.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302141733.29304.wes@softweyr.com> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday 14 February 2003 12:17, Garance A Drosihn wrote: > > I would not replace the historic syntax, but I would like to see > something "more readable" for the new options. Instead of cool > 1-letter codes, I think we could go with something a bit more > descriptive. OK, I'm cool with this. > Something like 'max=256m', 'rotate=newsyslog' and 'rotate=rm'. > Or I guess it should be something like 'rotate=trunc', so you > don't have to deal with permissions on a newly-created log file. Keywords are easier to parse than name=value pairs in this case. How 'bout: lpr.info /var/log/lpd-errs 256K local3.* /var/log/foo new 1K ftp.* /var/log/ftp bzip 1M cron.* /var/log/cron rm > I'd also suggest that newsyslog be run with some (new?) option > that says "rotate this file, even if you don't think it needs > to be rotated". newsyslog doesn't really seen to have this feature; -F just truncates the file. I'll look into a proper "force" flag for newsyslog. > I'd expect newsyslog to know *how* to do the > rotation in this case (bzip, gzip, or alternate file-naming > conventions, and permissions on the newly-created log file). What should it do if told to newsyslog a file it is not configured to handle? -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message