[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr/etc and /usr/local/etc?



Brian May <bam@snoopy.apana.org.au> writes:

> In article <873dvpa3nq.fsf@mrvnbook.intern.lin4net.de> you write:
> >> Config files are, by their nature, host-specific, and should not be in
> >> /usr
> >
> >They are not. e.g. /etc/hosts should be the same across a pool. Nearly 
> >all files in /etc can be shared and none should be rewritten on the
> >fly.
> 
> Agreed. My diskless package needlessly has to copy the entire
> contents of /etc for every host, since it cannot be shared.
> 
> However, how would you distinguish a shareable config file from a
> non-shareable config file? eg would {samba,squid,etc} be sharable???
> (not that you would normally run these on a diskless system).

Everything thats in /usr/etc is shareable across the same arch and
/usr/share/etc across all debian systems. If someone finds something
that should belong there fileing a bug would be the right thing to do so.

> I think if you are going to use /usr/etc, programs should first check
> /etc, in case the system administrator wishes to override the sharable
> config file for the given host.

I would rather say that /etc should link to /usr/etc, so deleting the
symlink and replacing it with a host specific file is enough to
specialise one host. Also this has the benefit that all conffiles can
be found in /etc and that no program has to be changed.

May the Source be with you.
			Goswin


Reply to: