Date: Tue, 19 Mar 2002 19:39:26 +0000 From: Chip Wiegand <chip@wiegand.org> To: "Drew Tomlinson" <drew@mykitchentable.net> Cc: freebsd-questions@freebsd.org, tim@lost.net.au Subject: Re: rc.conf Message-ID: <20020319193926.7df0ceb3.chip@wiegand.org> In-Reply-To: <002001c1cfa4$c7282e50$1c01a8c0@lc.ca.gov> References: <OF9A8004D2.873A8E80-ON88256B81.007FE0CF-88256B81.00802CE3@simrad.no> <002001c1cfa4$c7282e50$1c01a8c0@lc.ca.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- Chip On Tue, 19 Mar 2002 16:18:36 -0800 "Drew Tomlinson" <drew@mykitchentable.net> wrote: > > ----- Original Message ----- > From: chip.wiegand@simrad.com > To: freebsd-questions@freebsd.org > Sent: Tuesday, March 19, 2002 3:19 PM > Subject: rc.conf > > I've searched the archives, faq, manual, and google/bsd, all to no > avail. > I know this is possible - send a sig hup to rc.conf so it will be > re-read with > the new changes, thus avoiding rebooting the machine. I just don't > remember > the correct way to do it. I saw the answer before, just didn't write > it down, dummy > me. Could someone remind me? > > I'm going to go out on a limb here and state that it's not possible. > If it is, I'm sure I will be corrected. :) > > The reason I think it's not possible is because the /etc/rc is the > master script that's run on startup. I pulls in all the values set in > /etc/defaults/rc.conf. It then looks at /etc/rc.conf and uses those > values to override the settings pulled in previously. Next, it runs > all the rc.* scripts to start the various services. > > So essentially, if you re-ran /etc/rc you would be rebooting. The > question to ask here is, what daemon/process/config in particular do > you want to restart with new values? Then kill that daemon and > restart it with the appropriate switches. For example, if you're > looking to change network configs, look at the ifconfig utility. If > you want to change syslogd, kill syslogd and restart with the > appropriate switches. > > OK, so now I await any corrections or ommissions in my answer. After > all, this is how I learn too! :) > > Drew > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > 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?20020319193926.7df0ceb3.chip>