nanog mailing list archives

Re: Linux: concerns over systemd adoption and Debian's decision to switch [OT]


From: Jim Mercer <jim () reptiles org>
Date: Fri, 24 Oct 2014 11:10:50 -0400

On Fri, Oct 24, 2014 at 12:41:39AM -0400, Barry Shein wrote:
All those init.d scripts do about 95% the same thing, all hacked
together in shell. Most of them are probably just slightly edited
versions of some few paleo-scripts.

in FreeBSD, the bulk of the rc.d scripts are basically the same format,
inhaling a standardized library of functions, populating some variables,
maybe adding a few custom functions, then jumping to "main".

all largely driven off variables which have preset defaults in /etc/default/rc.conf, and over-ridden by /etc/rc.conf.

something i saw in various linux systems, which i now see moving into FreeBSD,
is the concept of the .d config directory, where the files in /etc/myapp.d are
effectively concatenated to /etc/myapp.conf.

this is quite nice from a sysadmin perspective, as you can set defaults in
/etc/myapp.conf, and then over-ride them with server/environmental specific
(and appropriately named) files in /etc/myapp.d/....

--jim

-- 
Jim Mercer     Reptilian Research      jim () reptiles org    +1 416 410-5633
"He who dies with the most toys is nonetheless dead"


Current thread: