From owner-freebsd-current Mon Jan 1 08:28:41 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA26002 for current-outgoing; Mon, 1 Jan 1996 08:28:41 -0800 (PST) Received: from server.netcraft.co.uk (server.netcraft.co.uk [194.72.238.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA25995 for ; Mon, 1 Jan 1996 08:28:32 -0800 (PST) Received: (from paul@localhost) by server.netcraft.co.uk (8.6.11/8.6.9) id QAA28104 for FreeBSD-current@FreeBSD.org; Mon, 1 Jan 1996 16:27:41 GMT From: Paul Richards Message-Id: <199601011627.QAA28104@server.netcraft.co.uk> Subject: Re: pcnfsd.. To: FreeBSD-current@FreeBSD.org (FreeBSD current mailing list) Date: Mon, 1 Jan 1996 16:27:41 +0000 (GMT) In-Reply-To: <2003.820114036@time.cdrom.com> from "Jordan K. Hubbard" at Dec 27, 95 05:27:16 pm Reply-to: paul@netcraft.co.uk X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-current@FreeBSD.org Precedence: bulk In reply to Jordan K. Hubbard who said > > As noted in my commit message, one unfortunate thing is that the pcnfsd > package will still need to modify /etc/sysconfig. Back when we had pcnfsd > in /etc/sysconfig, it was conditionalized off of in netstart so that we'd > know when to start mountd with the `-n' flag (see man page). Now that > the pcnfsd variable is gone, I've had to create another variable in > its place: ``weak_mountd_authentication'' Can't see the changes yet, not got good connectivity but wouldn't this have been better implemented by passing mount flags to mountd just like we do for sendmail and various other stuff. The solution for gated (from Rod's mail) would be to make the binary itself a config option and change /etc/rc and /etc/netstart to scripts that start "facilities" at specific points in the bootup process rather than specific binaries. These facilities would then be variables pulled in from sysconfig too so that if you want to run gated instead of routed you don't have to change gated=yes you change router=gated. i.e. if [ "x$router" != "xNO" ] ; then echo -n starting routing daemons: echo -n $router; $router $routerflags echo '.' fi The bootup scripts then become a list of tasks that need to be done at each stage of bootup i.e. at this point we start routing, at this stage we start mail daemons etc. All the specific binaries can be specified in sysconfig so that you can choose different mail daemons, different routing daemons and so forth. Since sysconfig is a locally editable file, packages, such as gated can edit that file on installation to change whatever variables it needs to to hook itself in, in this case, it would be $router and $routerflags and it would then get started at the right time. This seems to cover the basic desire to make rc and netstart readonly and move all configuration to sysconfig, allows programs to hook themselves in as a replacement for the base tools without any difficulty and provides a much more configurable system. -- Paul Richards, Netcraft Ltd. Internet: paul@netcraft.co.uk, http://www.netcraft.co.uk Phone: 0370 462071 (Mobile), +44 1225 447500 (work)