Technological advantages over Linux

Polytropon freebsd at edvax.de
Sat Feb 15 19:03:53 UTC 2020


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 at 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, ...


More information about the freebsd-questions mailing list