Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2002 15:11:13 -0800
From:      "Crist J. Clark" <cjc@FreeBSD.ORG>
To:        Doug Barton <DougB@FreeBSD.ORG>
Cc:        Makoto Matsushita <matusita@jp.FreeBSD.org>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, imp@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc rc
Message-ID:  <20020317151113.W29705@blossom.cjclark.org>
In-Reply-To: <20020317121422.I3758-100000@master.gorean.org>; from DougB@FreeBSD.ORG on Sun, Mar 17, 2002 at 12:15:27PM -0800
References:  <20020317221213Y.matusita@jp.FreeBSD.org> <20020317121422.I3758-100000@master.gorean.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 17, 2002 at 12:15:27PM -0800, Doug Barton wrote:
> On Sun, 17 Mar 2002, Makoto Matsushita wrote:
> 
> >
> > dougb>   Modified files:
> > dougb>     etc                  rc
> > dougb>   Log:
> > dougb>   Add a late rc.sysctl pass to catch sysctl's for things that were
> > dougb>   not loaded yet on the first pass.
> >
> > Are there any chances that we can distinguish "the early phase" and
> > "the latter phase" inside /etc/rc.sysctl?
> 
> Well, I was trying to keep it simple, but take a look at the latest
> version. Just remember, you asked for it. :)

I still kind of like the idea of breaking /etc/sysctl.conf into
sections and then being able to load these individual sections at
separate times by running,

  /etc/rc.sysctl <section>

Even if the quick implementation I wrote as a proof of concept is a
quite kludgey

  http://docs.freebsd.org/cgi/getmsg.cgi?fetch=36719+0+archive/2002/freebsd-arch/20020210.freebsd-arch

But I should also point out, doug, that if this is the kind of thing
you are thinking about by adding those 'first' and 'last' arguments,
it won't work the way it is written. When you load a file using the,

  . file

Syntax, the commands in the file are run by the current shell, the
environment is not changed, including the positional parameters ($1,
$2, $*, etc.). As far as I know,

  . /etc/rc.sysctl first

Just tosses out the 'first;' it isn't actually used at all.
-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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