Skip site navigation (1)Skip section navigation (2)
Date:      21 Mar 2002 16:15:57 -0500
From:      Lowell Gilbert <lowell@world.std.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: rc.conf
Message-ID:  <44sn6tipv6.fsf@be-well.ilk.org>
In-Reply-To: <20020320151344.A59778@rochester.rr.com>
References:  <OF9A8004D2.873A8E80-ON88256B81.007FE0CF-88256B81.00802CE3@simrad.no> <002001c1cfa4$c7282e50$1c01a8c0@lc.ca.gov> <20020319193926.7df0ceb3.chip@wiegand.org> <004201c1d04b$34466dc0$f82a6ba5@lc.ca.gov> <20020320151344.A59778@rochester.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
mpd <mpd6334@cs.rit.edu> writes:

> On Wed, Mar 20, 2002 at 12:09:55PM -0800, Drew Tomlinson wrote:
> > ----- Original Message -----
> > From: "Chip Wiegand" <chip@wiegand.org>
> > To: "Drew Tomlinson" <drew@mykitchentable.net>
> > Cc: <freebsd-questions@freebsd.org>; <tim@lost.net.au>
> > Sent: Tuesday, March 19, 2002 11:39 AM
> > Subject: Re: rc.conf
> > 
> > 
> > > I happen to recall there is a way to re-read, or restart, whatever you
> > > want to call it, rc.conf, and it does not involve rebooting at all. It
> > > has to do with sending a sighup or some such thing to process 1, I
> > > believe. That's the problem, I can't remember how. I know it's gotta
> > be
> > > in the archives, but after an hour of searching I gave up, there's
> > just
> > > too many irrelevant results.
> > 
> > Thanks for the info.  Please let me know if you find an answer.
> 
> Is there a reason to not just run it? It's just a shell script.

It's not supposed to contain any commands, just variable settings that
are used by other scripts.  You can re-run the *other* scripts, which
are generally set up to pull in rc.conf automatically, but in general
they're not idempotent (they'll try to start daemons that are already
running, and otherwise wreak havoc).

So it depends on which specific parameters you are changing in
rc.conf.  By and large, it's pretty easy to do (or restart) whatever
the startup scripts would have done with those variables, but to
really re-execute the whole startup procedure, it'll be really hard
without rebooting.  Or at least dropping to single-user mode and back
up, as by sending a SIGTERM to the init(8) process.

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




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