What we keep under /etc

John Hay jhay at icomtek.csir.co.za
Sun Oct 10 01:19:57 PDT 2004


On Sat, Oct 09, 2004 at 02:34:27PM -0500, Ryan Sommers wrote:
> Valentin Nechayev wrote:
> 
> >Are you serious? Well, let's make local modifications in
> >
> >/usr/src/etc/master.passwd, or what's the *real* difference between its
> >and /etc/rc.d/*?
> > 
> >
> Umm... Read the discussion again. The topic isn't /ALL/ of /etc just 
> those directories that are considered part of the OS like /etc/rc.d and 
> /etc/defaults. The difference is rc.d contains only the startup scripts 
> for the operating system. All others /should/ be in /usr/local/etc/rc.d.

While /usr/local/etc/rc.d works ok for a lot of things, it doesn't work
well for everything that one might want to add because it is only run
very late in the boot order. To be able to have something run somewhere
in the beginning, say before the NETWORKING phase, you have to add it
to /etc/rc.d, except if we add something like /etc/local.rc.d and also
add it to /etc/rc so that rcorder use both simultaneously, something
like 'rcorder ... /etc/rc.d/* /etc/local.rc.d/*'.

John
-- 
John Hay -- John.Hay at icomtek.csir.co.za / jhay at FreeBSD.org


More information about the cvs-all mailing list