From owner-freebsd-questions Tue Mar 19 19:39:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pioneernet.net (mail.pioneernet.net [207.115.64.224]) by hub.freebsd.org (Postfix) with ESMTP id 7CA0137B400 for ; Tue, 19 Mar 2002 19:39:18 -0800 (PST) Received: from chip.wiegand.org [66.114.152.128] by pioneernet.net (SMTPD32-6.06) id A45E8F5D0108; Tue, 19 Mar 2002 19:39:10 -0800 Date: Tue, 19 Mar 2002 19:39:26 +0000 From: Chip Wiegand To: "Drew Tomlinson" 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: <002001c1cfa4$c7282e50$1c01a8c0@lc.ca.gov> Organization: Alternative Operating Systems X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i386--freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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" 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