From owner-freebsd-arch Sat Mar 8 23: 5:16 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 D58C137B439 for ; Sat, 8 Mar 2003 23:05:08 -0800 (PST) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9BB3442EC for ; Sat, 8 Mar 2003 21:29:19 -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.8/8.12.7) with ESMTP id h295TIuF028552 for ; Sun, 9 Mar 2003 00:29:18 -0500 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: Sun, 9 Mar 2003 00:29:17 -0500 To: arch@FreeBSD.ORG From: Garance A Drosihn Subject: Re: NEWSYSLOG changes, -Create option for rc.diskless Content-Type: text/plain; charset="us-ascii" ; format="flowed" 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 When looking through some /etc/rc files the other day, I noticed that /etc/rc.diskless2 picks up entries in /etc/newsyslog.conf and uses 'touch' to create them. With all the other changes I have made and plan to make, this is not a good idea. In fact, it was already a bad idea because it won't get owner, group, or permissions set right. 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 create of a new log file. This (once I do it) should complete the job started in revision 1.41 (committed in april 2002). -- Garance Alistair Drosehn = 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