Subject: Handling 3rd party rc scripts
To: None <>
From: Lars Kellogg-Stedman <>
List: tech-pkg
Date: 02/05/2002 17:17:14
I wanted to summarize a recent discussion from the netbsd-users list here 
and see what the packaging folks thought.

The original question was:

  > I just completed an upgrade to NetBSD 1.5.2 on my sparc, and
  > I decided to take a better look at the /etc/rc.d stuff.
  > One thing I notice is that the scripts don't seem to chain
  > to /usr/pkg/etc or /usr/local/etc.
  > Is there an official way to do this?  If not, how do the
  > rest of you handle it?

The general consensus was that support for third party rc
scripts should be added to /etc/rc.  My original suggestion
was simple to add /usr/pkg/etc/rc.d to the rcorder command
line in /etc/rc:

  files=`rcorder -s nostart /etc/rc.d/* /usr/pkg/etc/rc.d/*`

But as Amitai Schlair pointed out, /usr may not be mounted
when rcorder is run.

What about allowing third party packages to place rc scripts
in something like /etc/pkg/rc.d?  This directory can be
added to the rcorder command line, and third party rc
scripts can then benefit from the same dependency resolution
system that the system rc scripts use.

Any thoughts?

-- Lars

Lars Kellogg-Stedman <>