Subject: Re: pkg and rc.d
To: Mario Kemper <firstname.lastname@example.org>
From: Greg A. Woods <email@example.com>
Date: 06/16/2001 16:00:21
[ On , June 16, 2001 at 19:42:29 (+0200), Mario Kemper wrote: ]
> Subject: pkg and rc.d
> Wouldn't a simple rc.d script (e.g. PKG) do, that is called after /usr/ is
> mounted and simply calls rcorder in /usr/pkg/etc/rc.d and executes the
Why not try that as a hook you could add yourself in /etc/rc.local?
> I remember that there was a thread about this and that there were some
> objections against this approach but i lost it.
> As currently all packages reside in /usr/pkg or /usr/X11R6 and thus have to
> be started after /usr was mounted this would at least work.
The best overall solution on many systems is to put /usr/pkg on the root
filesystem. Obviously on such system you probably want /usr on the root
Even (and especially, IMNSHO) on the smallest of disks capable of
hosting NetBSD it makes no sense to separate /usr. Whether you need a
separate /usr/pkg though might depend on how many small disks you use to
build your system with! ;-)
If you must have packages installed on a separate filesystem (as I do on
a couple of systems) then you need to make the symlinks work the other
/usr/pkg/etc/rc.d -> /etc/rc.d
This way you'll have all the right stuff in the right places and the
scripts will still be added and deleted by pkg_add/pkg_delete/whatever.
(That's what I do and it's been working very well except when some
package ends up trying to use a name that's the same as a system script,
which shouldn't ever happen even if they're not in the same directory.)
Greg A. Woods
+1 416 218-0098 VE3TCP <firstname.lastname@example.org> <email@example.com>
Planix, Inc. <firstname.lastname@example.org>; Secrets of the Weird <email@example.com>