list-freebsd-2004 at morbius.sent.com
Wed Jun 21 20:47:32 UTC 2006
On Wednesday 21 June 2006 18:40, B. Cook wrote:
> RW wrote:
> > On Tuesday 20 June 2006 15:15, B. Cook wrote:
> >> Hello all,
> >> I'm looking at what I think is the right answer.. but can't make sense
> >> of it..
> >> basically I have a couple of mailservers that run exim and dnscache, all
> >> being called out of daemontools.
> >> but I can't seem to figure out how to make svscan start first..
> > I don't see what you are getting at here, if exim and dnscache are
> > started by svscan, then by defininition svscan *is* starting first.
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at freebsd.org"
> Yes svscan starts dnscache and exim, but many services depend on dns
> (dnscache is setup on loopback) so I have to wait (for up to 3 minutes)
> for dns timeouts to occour so that they boot can continue, and finally
> get to starting svscan (quite low in the dictionary order of things)
> So I'm looking for how I can control the order that things start up in.
As I said in my other reply it depends on which version of FreeBSD you are
using. pre 6.1 you will have to move it to /etc/rc.d as several base-system
scripts require dns access. There is also the potential problem that the
later rc scripts wont wait for svscan to complete its initializations.
By far the easiest solution to this problem is to put additional nameservers
in resolv.conf after 127.0.0.1. The servers are checked in order, so only
dnscache will be used once it's up. That's what I do and it works fine.
More information about the freebsd-questions