Subject: Re: /usr/pkg/etc/rc.d/
To: None <wojtek@wojtek.from.pl>
From: Greg A. Woods <woods@weird.com>
List: netbsd-users
Date: 01/27/2001 17:58:32
[ On Saturday, January 27, 2001 at 02:43:05 (-0800), wojtek@wojtek.from.pl 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)
done
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 <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>