Subject: Re: /usr/pkg/etc/rc.d/
To: None <>
From: Greg A. Woods <>
List: netbsd-users
Date: 01/27/2001 17:58:32
[ On Saturday, January 27, 2001 at 02:43:05 (-0800), wrote: ]
> Subject: /usr/pkg/etc/rc.d/
> what is the standard method of start files here at boot ?

I've been doing this right away on fresh systems:

	mkdir -p /usr/pkg/etc
	ln -s /etc/rc.d /usr/pkg/etc

and then things more or less just work for package daemons....

(watch out for scripts with ".sh" filename extensions though as they may
have a detrimental affect on /etc/rc -- update your pkgsrc to current
first and you'll be OK)

If your system already has a lot of packages with startup scripts
installed then you might do this first:

	cd /usr/pkg/etc/rc.d
	for file in *.sh ; do 
		mv $file $(basename $file .sh)
	mv * /etc/rc.d
	cd ..
	rmdir /usr/pkg/etc/rc.d

Of course this starts everything without configuration since most
third-party rc.d scripts don't support use of /etc/rc.subr (which would
give them the capability to check for their config variable).

							Greg A. Woods

+1 416 218-0098      VE3TCP      <>      <robohack!woods>
Planix, Inc. <>; Secrets of the Weird <>