From owner-freebsd-arch Sun Feb 16 18:45:12 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 A024637B401 for ; Sun, 16 Feb 2003 18:45:10 -0800 (PST) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D77E043F75 for ; Sun, 16 Feb 2003 18:45:09 -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 h1H2j8b6006388; Sun, 16 Feb 2003 21:45:08 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200302150905.08387.wes@softweyr.com> References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302141733.29304.wes@softweyr.com> <200302150905.08387.wes@softweyr.com> Date: Sun, 16 Feb 2003 21:45:07 -0500 To: Wes Peters From: Garance A Drosihn Subject: Re: syslog.conf syntax change (multiple program/host specifications) Cc: arch@FreeBSD.ORG Content-Type: text/plain; charset="iso-8859-1" ; format="flowed" Content-Transfer-Encoding: quoted-printable X-RPI-Spam-Score: -1.3 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_03_05 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 9:05 AM +0000 2/15/03, Wes Peters wrote: >On Saturday 15 February 2003, Garance A Drosihn wrote: > > Based on a few minutes of testing, I think newsyslog will > > pretty much do the right thing if you call it as: > > >> newsyslog -Fr /var/log/somefilename >> > > The '-r' is just so newsyslog doesn't turn around and send > > a signal back to syslogd. I'm still tempted to add a '-R'. > >I'll give that a try Tuesday, or maybe Monday if I get my >current box running this weekend. Okay. > > I would add some default rotate-action to newsyslog, which >> would be used if -R is specified and the file is not listed >> in the newsyslog.conf file. > >Sounds good to me. Are you going to look into that? I'll >definitely want your changes to newsyslog to go along with >my changes to syslog.conf. ;^) Assuming we do not get too much snow tomorrow (Monday), I'll try to write up something then. 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. -- 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