From owner-freebsd-questions@FreeBSD.ORG Mon Feb 28 09:32:41 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 E320C16A4CE for ; Mon, 28 Feb 2005 09:32:41 +0000 (GMT) Received: from smtp817.mail.sc5.yahoo.com (smtp817.mail.sc5.yahoo.com [66.163.170.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 547AE43D2F for ; Mon, 28 Feb 2005 09:32:41 +0000 (GMT) (envelope-from krinklyfig@spymac.com) Received: from unknown (HELO smogmonster.com) (jtinnin@pacbell.net@64.171.3.242 with login) by smtp817.mail.sc5.yahoo.com with SMTP; 28 Feb 2005 09:32:41 -0000 From: Joshua Tinnin To: freebsd-questions@freebsd.org, Clay Date: Mon, 28 Feb 2005 01:32:42 -0800 User-Agent: KMail/1.7.2 References: <006801c51d4b$c95e99a0$be00a8c0@crskayak> In-Reply-To: <006801c51d4b$c95e99a0$be00a8c0@crskayak> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502280132.42605.krinklyfig@spymac.com> 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 09:32:42 -0000 On Sunday 27 February 2005 08:11 pm, "Clay" wrote: > Howdy, > > 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. - jt