Subject: Re: pkgsrc rc.d scripts
To: Frederick Bruckman <email@example.com>
From: David Brownlee <firstname.lastname@example.org>
Date: 05/15/2001 10:35:15
On Mon, 14 May 2001, Frederick Bruckman wrote:
> I don't see why installing two files is a problem. We presently
> support NetBSD-1.3.x, NetBSD-1.4.x and NetBSD-1.5*. Each script is
> optimal for the system it's meant to be used on. With a monolothic
> script, if you make any change for NetBSD-1.5, you're liable to break
> it for NetBSD-1.4.x and earlier.
> > So my question still stands...which way do we prefer: standalone rc.d
> > scripts or ones that use /etc/rc.subr?
> You have my answer. My goal was to create a handy script that I could
> copy into /etc/rc.d/. I don't see any point in shoehorning rc.d-style
> scripts into older systems (and non-NetBSD systems), especially when
> you already have a script to support those systems.
Having two scripts can allow them to get out of sync, and give
different behaviour between netbsd versions. I'd prefer to see
something similar to Greg's posting where the necessary
functions are embedded in the rc script.
Maybe even have a pkgsrc/mk/rc.subr which can be appended to
rc scripts on install?
David/absolute -- www.netbsd.org: No hype required --