Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 01:32:42 -0800
From:      Joshua Tinnin <krinklyfig@spymac.com>
To:        freebsd-questions@freebsd.org, Clay <crs.freebsd_mailinglist@users.nuaptools.com>
Subject:   Re: Can "/etc/rc.conf" be replaced with a symlink?
Message-ID:  <200502280132.42605.krinklyfig@spymac.com>
In-Reply-To: <006801c51d4b$c95e99a0$be00a8c0@crskayak>
References:  <006801c51d4b$c95e99a0$be00a8c0@crskayak>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 27 February 2005 08:11 pm, "Clay" 
<crs.freebsd_mailinglist@users.nuaptools.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502280132.42605.krinklyfig>