From owner-freebsd-questions@FreeBSD.ORG Mon Feb 28 12:38:07 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8C5C16A4CE for ; Mon, 28 Feb 2005 12:38:06 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FF7D43D49 for ; Mon, 28 Feb 2005 12:38:02 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j1SCbnfG031233; Mon, 28 Feb 2005 14:37:49 +0200 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j1SCbxZb012033; Mon, 28 Feb 2005 14:37:59 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)j1SCbwU1011994; Mon, 28 Feb 2005 14:37:58 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 28 Feb 2005 14:37:58 +0200 From: Giorgos Keramidas To: Joshua Tinnin , Clay Message-ID: <20050228123758.GC1062@orion.daedalusnetworks.priv> References: <006801c51d4b$c95e99a0$be00a8c0@crskayak> <200502280132.42605.krinklyfig@spymac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502280132.42605.krinklyfig@spymac.com> cc: freebsd-questions@freebsd.org Subject: Re: Can "/etc/rc.conf" be replaced with a symlink? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 12:38:07 -0000 On 2005-02-28 01:32, Joshua Tinnin wrote: >On Sunday 27 February 2005 08:11 pm, "Clay" wrote: >> I am for the most part a newbie to FreeBSD. I am wanting to move >> some config files from their standard location to a single >> directory and create symlinks for each. Doing this will allow me >> to more easily maintain and backup the files. >> >> dhclient is able to use dhclient.conf when symlink'd. Apache seems >> to also work when httpd.conf is symlink'd. >> >> Can "/etc/rc.conf" be replaced with a symlink? I have done and the >> file isn't being read/found. Moving the actual file back to /etc >> fixed the problem. > > I am not entirely sure, but to hazard a guess, this isn't working > because rc.conf loads before the other filesystems in /etc/fstab are > mounted, and you have the actual rc.conf file on one of those > filesystems (though you didn't specify). Apache (httpd) and dhclient > run after they are mounted. Thus, you would be able to symlink > rc.conf as long as the actual file is in the root filesystem (I > think), but I'm not sure if that's a good idea - it might be > alright, just never done it before. Correct. Some of the /etc/rc.d scripts need to read rc.conf before any of the filesystems have been mounted. Those scripts will fail if all they can see is a root filesystem, mounted read-only, and cannot access rc.conf options (because rc.conf has been moved somewhere else).