Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 1999 12:42:01 -0700 (PDT)
From:      Doug <Doug@gorean.org>
To:        John <papalia@UDel.Edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /etc/rc.conf restart
Message-ID:  <Pine.BSF.4.10.9909221236430.28644-100000@dt014nb6.san.rr.com>
In-Reply-To: <4.1.19990921215707.0095e2e0@unix01.voicenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 21 Sep 1999, John wrote:

> Welcome to the next of my "it seems like the answer would be so simple"
> questions...
> 
> Is there a way to get the system to re-read /etc/rc.conf without a
> shutdown/reboot?

	Given that none of the answers you've had so far really addressed
your question, I'll give it a stab. The correct answer is, "It depends."
Namely, it depends on what you want re-read. There are certain things that
can only be done at boot time, and for those the "drop to single user and
restart" option is fine, but that's just a fancy way of telling you to
reboot your system since you can't do any (ok, not much) useful work in
single user mode. 

	What you really want to do is find out how the system handles the
option(s) you are trying to reset during the boot process. For that the
easiest way to learn is to do:

cd /etc
grep "thing you want to know about" *

This will tell you what script that item is handled in, and show you how
the system deals with it. Then in almost all cases you can figure out how
you can reset that option without having to reboot. It may take some
detective work, and perhaps some trial and error, but it's rarely
_necessary_ to reboot a freebsd system just to change a few options, and
it's frequently not desirable to do so either. 

	If after you've struggled with it for a while you still can't
figure it out, ask about the options you need help with here, and
generally someone who is knowledgeable about it can help. Include details
of where/how you looked, and what you tried so that the person answering
can avoid duplicating your efforts. 

Hope this helps,

Doug
-- 
"My mama told me, my mama said, 'don't cry.' She said, 'you're too young a man
to have as many women you got.' I looked at my mother dear and didn't even
crack a smile. I said, 'If women kill me, I don't mind dyin!'" 

    - John Belushi as "Joliet" Jake Blues, "I Don't Know"



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?Pine.BSF.4.10.9909221236430.28644-100000>