Subject: Re: etc chains...
To: Jan Schaumann <jschauma@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 02/05/2002 11:36:48
On Tue, 5 Feb 2002, Jan Schaumann wrote:
> Julio Merino <juli@merino.net> wrote:
>
> > chain_rc_dirs="/usr/pkg/etc/rc.d /usr/local/etc/rc.d"
No /usr/X11R6/etc/rc.d?
> | if ! checkyesno chain_rc; then
> | files=`rcorder -s nostart /etc/rc.d/*`
> | else
> | for i in $chain_rc_dirs; do
> | ofiles="${ofiles} $i/*"
> | done;
> | files=`rcorder -s nostart ${ofiles}`
> | fi
This is fundamentally wrong, as it forces all the package scripts to
start after all the base scripts.
Why not just have:
files=`rcorder -s nostart /etc/rc.d/* /etc/*/rc.d`
in "/etc/rc"; add a dummy "/etc/pkg/rc.d/README and
/etc/local/rc.d/README" to satisfy rcorder, corresponding changes to
mtree/{NetBSD.dist, special}, and that's it as far as the base system
goes?
By the way, this discussion belongs on tech-pkg or tech-userlevel, not
on netbsd-users. [Note Follow-up-to header.]
Frederick