From owner-freebsd-arch@FreeBSD.ORG Sun Apr 6 14:49:53 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 D3D8537B401 for ; Sun, 6 Apr 2003 14:49:53 -0700 (PDT) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1454E43FB1 for ; Sun, 6 Apr 2003 14:49:53 -0700 (PDT) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 58BB25308; Sun, 6 Apr 2003 23:49:50 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Poul-Henning Kamp" From: Dag-Erling Smorgrav Date: Sun, 06 Apr 2003 23:49:50 +0200 In-Reply-To: <30340.1049663478@critter.freebsd.dk> ("Poul-Henning Kamp"'s message of "Sun, 06 Apr 2003 23:11:18 +0200") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <30340.1049663478@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: arch@freebsd.org Subject: Re: Add timecounter option to rc.conf 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: Sun, 06 Apr 2003 21:49:54 -0000 "Poul-Henning Kamp" writes: > I on the other hand think that by now /etc/rc.conf has so many knobs > and handles that it is practically impossible to figure out how to > do anything without resorting to "less /etc/rc.*" to figure it out :-( 'man rc.conf' should hopefully be reasonably up to date, and /etc/defaults/rc.conf briefly documents most of the knobs. The main problem is that there are knobs which aren't listed in either of these and which I suspect even most committers never knew existed, because our rc.d scripts were imported wholesale from NetBSD with some but IMHO not enough adaptation. Differences between NetBSD and FreeBSD should have been viewed as an opportunity to improve both, but instead the scripts were "dumbed down" to provide very little beyond what already existed in FreeBSD. > > (another such example is ntp.conf - the needs of most ntpd users can > > be met with an ntp.conf generated automatically from information which > > is already present in rc.conf) > The new NTP4 automatic configuration stuff is promising in this respect, > with a little luck people will need to configure nothing at all. That would be nice, but we can still do far better than the status quo for the current version. We actually have some of the required knobs (inherited from NetBSD along with the rest of rcNG) but they are not documented and still fall a little short of what I would like to see. I would like to have a single ntp_servers variable listing NTP servers in the host's vicinity; if set, that list would be appended to the ntpdate command line, and used to autogenerate ntp.conf. Of course, if it were empty (the default), any preexisting ntp.conf would be left intact. I also think ntpdate_enable and ntpd_enable should default to YES if ntp_servers is non-empty, but that might be slightly more controversial. Currently, ntpdate gets its server list from the ntpdate_hosts variable, or from ntp.conf if ntpdate_hosts is empty. None of this is documented, because it came from NetBSD with rcNG. Previously, we had to list servers in ntpdate_flags; I bet a lot of people still do, unaware that the servers listed in ntp.conf will be appended to this list. DES -- Dag-Erling Smorgrav - des@ofug.org