Subject: Re: What about startup scripts??
To: Frederick Bruckman <fb@enteract.com>
From: Al Snell <alaric@alaric-snell.com>
List: tech-pkg
Date: 12/31/2000 15:27:35
On Sun, 31 Dec 2000, Frederick Bruckman wrote:

> The *real* problem is, you have to run rcorder early in the boot
> process, before /usr is mounted.

The suggestion was to copy /usr/*/etc/rc.d/* to /etc/rc.d whenever a
package is installed... or at every system shutdown as well for the
paranoid! This should be thought of as the package registering itself in a
database rather than parts of the package being installed in silly places!
The PLIST would *not* show the copy in /etc. Package rc.d scripts would
source /etc/rc.conf *and* /usr/pkg/etc/rc.conf.

Should there be on /usr/pkg/etc/rc.conf or one per package? The latter
would make for easier uninstalls...

/etc/rc.d can be trivially regenerated from a base install by rerunning
the script that copies /usr/local/etc/rc.d/* and /usr/pkg/etc/rc.d/*
there.

> 
> Frederick
> 

ABS

-- 
                               Alaric B. Snell
 http://www.alaric-snell.com/  http://RFC.net/  http://www.warhead.org.uk/
   Any sufficiently advanced technology can be emulated in software