Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 1996 16:27:41 +0000 (GMT)
From:      Paul Richards <paul@netcraft.co.uk>
To:        FreeBSD-current@FreeBSD.org (FreeBSD current mailing list)
Subject:   Re: pcnfsd..
Message-ID:  <199601011627.QAA28104@server.netcraft.co.uk>
In-Reply-To: <2003.820114036@time.cdrom.com> from "Jordan K. Hubbard" at Dec 27, 95 05:27:16 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601011627.QAA28104>