From owner-freebsd-arch@FreeBSD.ORG Fri Apr 25 18:45:39 2003 Return-Path: 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 C39C237B401 for ; Fri, 25 Apr 2003 18:45:39 -0700 (PDT) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07A0443FD7 for ; Fri, 25 Apr 2003 18:45:39 -0700 (PDT) (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.9/8.12.9) with ESMTP id h3Q1jbPx012319 for ; Fri, 25 Apr 2003 21:45:37 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302251255.48219.wes@softweyr.com> Date: Fri, 25 Apr 2003 21:45:36 -0400 To: arch@FreeBSD.ORG From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.28 Subject: Re: NEWSYSLOG changes, -Create option for rc.diskless X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2003 01:45:40 -0000 Back on March 9th, Garance A Drosihn wrote: > >I have an update in: >http://people.freebsd.org/~gad/newsyslog/create-opt.diff > >which implements a '-C' option for newyslog. Once this is >committed, /etc/rc.diskless2 should be changed to use it. The >update also adds a a 'C' flag for the config file entries, to >match an option that NetBSD has. > >Please pay close attention to the new createlog() routine, >as a later update will switch to using that for all logfile >creations. My goal was to eliminate all windows in the creation >of a new log file. This later update (once I do it) should >complete the job started in revision 1.41 (from april 2002). Based on the feedback in March, I've made some changes to my earlier change. The way it works now is that *if* the -C option is specified once, then newsyslog will create any log files which do not exist, *and* which have the 'C' flag specified in their config file entry. If the -C option is specified multiple times, then all missing log files are created, without carrying if they have a 'C' flag specified. With this change in, I would then change rc.diskless2 so it runs 'newsyslog -CC' (instead of what it does now, which is very icky...) If any files are also given on the command line, then the -C or -CC will only apply to the specified log files. Does this seem reasonable? I'd like to commit this to current on Sunday (the .diff even includes the change for the man page!). -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu