Subject: how to get bind9 named to load at boot w/ /usr/pkg on it's own
To: netbsd-help <netbsd-help@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: netbsd-help
Date: 09/08/2002 14:14:17
I have /usr/pkg on it's own disk partition; bind9 is installed under
/usr/pkg (per usual). The problem is that /usr/pkg/sbin/named doesn't run
at boot time. And yes, named9=YES is set in /etc/rc.conf. It runs fine via 

# /etc/rc.d/named start

so the config files are good, and everything should work.

/usr/sbin/named (i.e., the bind8 installation that's part of the NetBSD
distribution) loads just fine at boot. My guess is that /usr/pkg/sbin/named
is failing at boot because it tries to run before /usr/pkg actually gets
mounted (though I see no errors during boot and nothing in any log files
says "/usr/pkg/sbin/named not found" or some such).

What's the best way to fix this? Should I force /usr/pkg to mount earlier
in the boot process? If so, how do I do that?

I can, of course, copy /usr/pkg/sbin/named to /usr/sbin/named but thought
I'd see if this can be solved another way.

FWIW, this is NetBSD/mac68k 1.5.4_ALPHA, though that shouldn't matter.

Thanks,
Mark