From owner-freebsd-arch Mon Feb 17 21:17:23 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 9B15637B405 for ; Mon, 17 Feb 2003 21:17:21 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFD6443FBF for ; Mon, 17 Feb 2003 21:17:20 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (66-75-151-22.san.rr.com [66.75.151.22]) by smtp-relay.omnis.com (Postfix) with ESMTP id B4DEC4362F; Mon, 17 Feb 2003 21:16:01 -0800 (PST) From: Wes Peters Organization: Softweyr To: Garance A Drosihn Subject: Re: syslog.conf syntax change (multiple program/host specifications) Date: Tue, 18 Feb 2003 05:16:00 +0000 User-Agent: KMail/1.5 Cc: arch@FreeBSD.ORG References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302150905.08387.wes@softweyr.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200302180516.00673.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 Monday 17 February 2003 02:45, Garance A Drosihn wrote: > > In a separate message on 2/15/03, Wes Peters wrote: > >On Saturday 15 February 2003, Thomas Quinot wrote: > > > Le 2003-02-14, Wes Peters =E9crivait : > > > > 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. > > > > > > Well, precisely for this reason it would seem even nicer to > > > me to delegate the size limitation to newsyslog as well > > > perhaps rebuilding a tool similar to daemontool's multilog > > > based on code shared with newsyslog). > > > >That's a better answer than incorporating multilog with all it's > >djb licensing warts, but still costs another process for every > >log file you want to size-limit. > > > >Garance, did you get this one? Do you want to look at this? > > I believe this issue would be handled by the "force" option > (either '-Fr' for now, or '-R' & handling once I do > that). So, my assumption is that there is nothing additional > I need to do here. Let me know if I'm missing something. Oh, Thomas was asking for a process that reads stdin and rotates=20 the data among log files in the way newsyslog does. The "right"=20 way to do this would be to extract the file rotation code into a=20 shared library (librotate - hahaha) and write a simple program to=20 implement the pipe functionality. It sounds straightforward, I=20 can look into it if you're too busy or not interested. Or buried under snow. ;^) =2D-=20 Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message