Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Feb 2020 20:03:49 +0100
From:      Polytropon <freebsd@edvax.de>
To:        "Steve O'Hara-Smith" <steve@sohara.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Technological advantages over Linux
Message-ID:  <20200215200349.89881363.freebsd@edvax.de>
In-Reply-To: <20200215083848.ca1d5b3d463e50da5947a381@sohara.org>
References:  <20200214121620.GA80657@admin.sibptus.ru> <BAF0D681-7C95-419E-A49C-993F0EA39748@kicp.uchicago.edu> <20200214195430.25365f87@moonstudio> <7371554e-82a3-a7aa-b764-ae2627e241d3@kicp.uchicago.edu> <20200214203134.17f6d4bd@moonstudio> <20200215064911.GF1482@admin.sibptus.ru> <20200215083848.ca1d5b3d463e50da5947a381@sohara.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, 15 Feb 2020 08:38:48 +0000, Steve O'Hara-Smith wrote:
> On Sat, 15 Feb 2020 13:49:11 +0700
> Victor Sudakov <vas@sibptus.ru> wrote:
> 
> > Ralf Mardorf via freebsd-questions wrote:
> > > 
> > > An update never ever would replace /etc/foo.conf . On Arch Linux it
> > > would be stored as /etc/foo.conf.pacnew , almost all Linux distros
> > > provide such a solution, but the admin is screwed, if an update does
> > > add a file to /etc/foo.d/ .
> > 
> > FreeBSD has taken this path too (looking at /etc/rc.conf.d/, /etc/cron.d
> > and numerous others).
> 
> 	FreeBSD has used this approach to carefully separate default
> configuration from user provided configuration - the directories are
> generally for sysadmins the files for the distribution.

Interesting way to look at it. Maybe it's worth mentioning
that OpenBSD emphasizes a similar approach: *.conf are provided
by the OS, and *.conf.local contains alternations and additions
by the sysadmin. FreeBSD also offers this mechanism for rc.conf
with a "hierarchy":

	/etc/defaults/rc.conf
	/etc/rc.conf
	/etc/rc.conf.local || /etc/rc.conf.d/*

Here, "||" means "parallel", quasi-parallel, as "man 5 rc.conf"
doesn't indicate a specific precedence... ;-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20200215200349.89881363.freebsd>