From owner-freebsd-questions Sat Sep 16 11:10:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id A20AA37B423 for ; Sat, 16 Sep 2000 11:10:12 -0700 (PDT) Received: from vedette by siafu.iconnect.co.ke with local (Exim 2.12 #1) id 13aMOa-0002Ox-00 for freebsd-questions@freebsd.org; Sat, 16 Sep 2000 21:09:00 +0300 Date: Sat, 16 Sep 2000 21:09:00 +0300 From: Odhiambo Washington To: freebsd-questions@freebsd.org Subject: Re: /etc/rc.conf being ignored Message-ID: <20000916210900.B8587@siafu.iconnect.co.ke> Mail-Followup-To: freebsd-questions@freebsd.org References: <20000916170048.13570.qmail@web117.yahoomail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000916170048.13570.qmail@web117.yahoomail.com>; from Matthew Schroebel on Sat, Sep 16, 2000 at 10:00:48AM -0700 X-Mailer: Mutt http://www.mutt.org/ X-Accept-Language: en fr X-Editor: Pico http://www.washington.edu/pine X-Location: Mombasa, Kenya, East Africa X-Uptime: 9:07PM up 19 days, 9:58, 1 user, load averages: 0.04, 0.11, 0.09 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Quoting Matthew Schroebel : [000916 19:59]: #>Hi all. I'm trying to both upgrade my mail server to #>FreeBSD 4.1 and install a larger drive at the same #>time. So I decided to put the drive in a different #>machine, install FreeBSD 4.1 on it, move the rc.conf, #>rc.firewall, sendmail.cf, etc over to the new drive, #>then put the new drive in the mail server and boot it. #> The trouble is, the /etc/rc.conf file is being #>ignored. I looked at /etc/defaults/rc.conf and the #>code to load the local overrides has changed from #>prior versions. Not knowing shell scripting language, #>and not wanting to change /etc/defaults/rc.conf, I'm #>stuck. #> #>The code at the end of /etc/defaults/rc.conf is #> #>if [-z "${source_rc_confsdefined}" ]; then #> source_rc_confs_defined=yes #> source_rc_confs ( ) { #> local i sourced_files #> for i in ${rc_conf_files}; do #> case ${sourced_files} in #> *:$i:*) #> ;; #> *) #> sourced_files="${sourced_files}:$i" #> if [ -r $i ]; then #> . $i #> fi #> ;; #> esac #> done #>} Wasn't that weird? There are procedures for moving to new disks.... search the archives and redo the thing nicely, sir. -- Odhiambo Washington Systems Administrator Inter-Connect Ltd. 3rd Flr The Chancery Valley Rd PO Box 39519 Nairobi, KENYA Tel: 254 2 711140 Fax: 254 2 718418 The real measure of your wealth is how much you'd be worth if you lost all your money. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message