From owner-freebsd-arch Fri Feb 14 12:17:39 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 119B537B401; Fri, 14 Feb 2003 12:17:38 -0800 (PST) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2810E43F75; Fri, 14 Feb 2003 12:17:37 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.12.7/8.12.7) with ESMTP id h1EKHZ3v029705; Fri, 14 Feb 2003 15:17:35 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200302141100.23529.wes@softweyr.com> References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <20030213174531.GZ83215@roark.gnf.org> <20030213184309.GA53098@melusine.cuivre.fr.eu.org> <200302141100.23529.wes@softweyr.com> Date: Fri, 14 Feb 2003 15:17:33 -0500 To: Wes Peters , Thomas Quinot , Gordon Tetlow From: Garance A Drosihn Subject: Re: syslog.conf syntax change (multiple program/host specifications) Cc: Thomas Quinot , arch@FreeBSD.ORG Content-Type: text/plain; charset="iso-8859-1" ; format="flowed" Content-Transfer-Encoding: quoted-printable X-RPI-Spam-Score: -1.6 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01 X-Scanned-By: MIMEDefang 2.28 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 At 11:00 AM -0800 2/14/03, Wes Peters wrote: >On Thursday 13 February 2003 10:43, Thomas Quinot wrote: >> Le 2003-02-13, Gordon Tetlow =E9crivait : >> > it should be relatively easy to implement a log roller (or steal one). >> >> Yes, much code for that could be lifted from newsyslog presumably. > >To this end I've implemented another feature, 'N' for newsyslog. >When the file size limit is reached, newsyslog is run with >the log filename as the only argument. The size limitation >in syslog.conf and newsyslog.conf should agree or you won't >get what you expect. > >Does this seem reasonable? > >Can anyone suggest a better syntax that is in keeping with the >current syslog.conf? I am *not* going to replace the syslog.conf >with a different format, only extend it to encompass this simple >functionality. 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. Something like 'max=3D256m', 'rotate=3Dnewsyslog' and 'rotate=3Drm'. Or I guess it should be something like 'rotate=3Dtrunc', so you don't have to deal with permissions on a newly-created log file. 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". 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). -- Garance Alistair Drosehn =3D gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message