Subject: Re: post-installation and rc.d enhancements
To: David Laight <>
From: Frederick Bruckman <>
List: tech-userlevel
Date: 04/17/2002 14:59:58
On Wed, 17 Apr 2002, David Laight wrote:

> > The /etc/defaults/rc.pkg.conf would be modified by installation scripts,
> Isn't it somewhat saver (if a little more costly in file space)
> to have a single file per package.  Scripts editing files
> are notoriously difficult to get completely correct.
> (especially when deleting items....)

As I said, if the total number of scripts is no more than say, 50-75,
we don't have to edit the file -- we can just re-install the whole file
with each package that has an rc.d script.

> The files could be concatenated to simplify processing.
> Clearly (?) only a single file for user parameter changes is required.

Exactly. But "/etc/rc.conf" is sourced *before* "/etc/rc.conf.d/$name",
so if you were to put the defaults in the later, you can't then have
host-specific overrides in "/etc/rc.conf"; the user would rather be
forced to edit the file that's under pkgsrc control, and vice-versa.

And another thing -- for sushi, we could also maintain a package
template alongside that master defaults file, and install both files at
the same time.