From owner-freebsd-arch Thu Feb 27 20:39:47 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 4E86B37B401 for ; Thu, 27 Feb 2003 20:39:45 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF8E443FAF for ; Thu, 27 Feb 2003 20:39:44 -0800 (PST) (envelope-from wes@softweyr.com) Received: from 204.68.178.4 (66-75-151-22.san.rr.com [66.75.151.22]) by smtp-relay.omnis.com (Postfix) with ESMTP id B029B42D03; Thu, 27 Feb 2003 20:39:43 -0800 (PST) From: Wes Peters Organization: Softweyr LLC To: Garance A Drosihn , arch@FreeBSD.ORG Subject: Re: NEWSYSLOG changes, nosignal & -Rotate Date: Thu, 27 Feb 2003 20:48:38 -0800 User-Agent: KMail/1.5 References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302272048.38443.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 Tuesday 25 February 2003 08:58 pm, Garance A Drosihn wrote: > At 7:18 PM -0500 2/25/03, Garance A Drosihn wrote: > >Well, I'm seriously thinking of redoing the -R update a little, > >and have a separate option to say "do not signal". > > I have two different updates now, to replace the one I previously > posted. To avoid the problem where my messages sometimes disappear > when I include the patch in them, here's the location of the two > patches: > > http://people.freebsd.org/~gad/newsyslog/1-nosig.diff > http://people.freebsd.org/~gad/newsyslog/2-rotate.diff > > The first one adds a '-s' option to the newsyslog command, which > indicates that newsyslog should NOT send signals to any processes > if it has to rotate some log files. It also adds the 'N' or 'n' > option to the flags-field of entries in /etc/newsyslog.conf, which > indicates that the specific entry has no process which needs to be > signalled. For instance, right now the distributed newsyslog.conf > file has entries for files like /var/log/daily.log, and I doubt > that syslogd needs to be HUP'ed whenever that file is rotated. > > Both -s and the 'N' flag are based on options in NetBSD's version > of newsyslog. I am tempted to pick some other option, say '-Q' > plus 'Q' or 'q' for flags, so that the same letter will be used in > the config file or when specified on the command. I would keep > the netbsd letters, but only document the new letter. It would > be very easy to talk me into doing this... > > The nosig patch includes a little cleanup in areas I was touching > anway, which are done with an eye towards future updates (such > as the -R update...). > > The second update is basically the same as my previous posting > of the -R option, except that the newer implementation *does* > send a signal by default. Callers of newsyslog who do not want > the signal would add the '-s' (or '-Q'?) option. > > These updates have not been tested much. I intend to commit > them next Sunday, assuming they work in my testing and no one > has any additional feedback on them. They assume you're running > the up-to-the-minute version of newsyslog in -current. > > newsyslog itself has a number of subtle and not-so-subtle bugs > in it, so I expect to be writing up more updates after these. > One bug which was cleaned up as part of the nosig patch is that > it currently accepts either capital-G or lowercase-c (instead of > lowercase-g) as the flags to indicate the entry is a glob-pattern. > I still accept 'c', but warn about it. Sounds good to me. It takes me a while to test your patches because I have to back-port them to 4.4, but I'll get them hacked in. I'm going to try to get my -current box up this weekend and get the syslogd changes hacked into -current ready for testing and committing also. -- "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