From owner-freebsd-arch Mon Mar 10 8:49: 0 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 150EA37B401 for ; Mon, 10 Mar 2003 08:48:59 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5775C43F93 for ; Mon, 10 Mar 2003 08:48:58 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from dialup-209.244.104.52.dial1.sanjose1.level3.net ([209.244.104.52] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18sQSM-0002Ce-00; Mon, 10 Mar 2003 08:48:55 -0800 Message-ID: <3E6CC194.96EADAA7@mindspring.com> Date: Mon, 10 Mar 2003 08:47:16 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Garance A Drosihn Cc: Bruce Evans , arch@FreeBSD.ORG Subject: Re: NEWSYSLOG changes, -Create option for rc.diskless References: <20030310000219.N15648-100000@gamplex.bde.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4b417cee0c253cdfab57b3c599ff4a050350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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 Garance A Drosihn wrote: > Well, the idea of -C is to make the "manual creation" process > something that rc.diskless2 can do trivially and reliably, by > just asking newsyslog to do it. If we instead use mtree to > create the initial files, then I think we'll end up with two > different databases that will have to have the same information. Or worse: one that's a subset or superset of the other. It's much more useful to have a "create" option, like you have. BTW: mtree would make that *three* databases, not two. There are seperate syslog and newsyslog databases. This is probably less important, since newsyslog is bound to be a superset or equivalence set of the syslog file, but they are seperately maintained, which is annoying (and probably the main reason people keep talking about integrating newsyslog into syslog). > However, I have been thinking about the fact that newsyslog.conf > does often contain rules for files that don't exist. This patch > currently adds the -C option, and also adds a C flag for config-file > entries. Perhaps the 'C' flag should not mean "always create > this file if it does not exist". Perhaps it should mean "create > this file if it does not exist, and if -C was given". That way, > the -C option becomes "create all log files which have a C flag". Yes. This makes more sense. For example, Samba is likely to start after newsyslog starts, so it should be non-automatic. > That means our C flag would be a little different than NetBSD's > C flag, but I think it's a reasonable idea. That way the config > file can have a long list of entries, only some of which would be > automatically created. What do people think about that idea? What do the NetBSD folks say? They may have good reasons for not behaving that way... > [the more I think about it, the more I like it, although it means > more explanation will be needed in the man page] -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message