Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 14:37:58 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Joshua Tinnin <krinklyfig@spymac.com>, Clay <crs.freebsd_mailinglist@users.nuaptools.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can "/etc/rc.conf" be replaced with a symlink?
Message-ID:  <20050228123758.GC1062@orion.daedalusnetworks.priv>
In-Reply-To: <200502280132.42605.krinklyfig@spymac.com>
References:  <006801c51d4b$c95e99a0$be00a8c0@crskayak> <200502280132.42605.krinklyfig@spymac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-02-28 01:32, Joshua Tinnin <krinklyfig@spymac.com> 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).



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