[175580] in North American Network Operators' Group
Re: Linux: concerns over systemd adoption and Debian's decision to
daemon@ATHENA.MIT.EDU (Jim Mercer)
Fri Oct 24 11:10:57 2014
X-Original-To: nanog@nanog.org
Date: Fri, 24 Oct 2014 11:10:50 -0400
From: Jim Mercer <jim@reptiles.org>
To: nanog@nanog.org
In-Reply-To: <21577.55427.300064.883007@world.std.com>
Errors-To: nanog-bounces@nanog.org
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"