Subject: Re: post-installation and rc.d enhancements
To: Simon J. Gerraty <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 04/18/2002 01:15:20
>>> Clearly (?) only a single file for user parameter changes is required.
>>Exactly. But "/etc/rc.conf" is sourced *before* "/etc/rc.conf.d/$name",
>That presumably is a bug :-)
>If the various conf files are processed in the correct order, life is
>much simpler for everyone.
no, that's the intended behavior. rc.conf is for settings. rc.conf.d
is for overriding those settings. rc.conf.d can also provide scoped
pieces of sh stuff that don't belong in rc.conf. for example: here's
my /etc/rc.conf.d/ssh file:
if [ "$sshd" = pkgsrc ]; then
which allows me to set a machine to YES, NO, or pkgsrc. neat, eh?
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."