From owner-freebsd-questions Thu Mar 21 13:16: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.158]) by hub.freebsd.org (Postfix) with ESMTP id 68C9237B404 for ; Thu, 21 Mar 2002 13:15:58 -0800 (PST) Received: (from lowell@localhost) by be-well.ilk.org (8.11.6/8.11.6) id g2LLFvk59340; Thu, 21 Mar 2002 16:15:57 -0500 (EST) (envelope-from lowell@world.std.com) X-Authentication-Warning: be-well.ilk.org: lowell set sender to lowell@world.std.com using -f To: freebsd-questions@freebsd.org Subject: Re: rc.conf References: <002001c1cfa4$c7282e50$1c01a8c0@lc.ca.gov> <20020319193926.7df0ceb3.chip@wiegand.org> <004201c1d04b$34466dc0$f82a6ba5@lc.ca.gov> <20020320151344.A59778@rochester.rr.com> From: Lowell Gilbert Date: 21 Mar 2002 16:15:57 -0500 In-Reply-To: <20020320151344.A59778@rochester.rr.com> Message-ID: <44sn6tipv6.fsf@be-well.ilk.org> Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mpd writes: > On Wed, Mar 20, 2002 at 12:09:55PM -0800, Drew Tomlinson wrote: > > ----- Original Message ----- > > From: "Chip Wiegand" > > To: "Drew Tomlinson" > > Cc: ; > > 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