Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2006 21:04:17 +0100
From:      RW <list-freebsd-2004@morbius.sent.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: rcorder example?
Message-ID:  <200606212104.18808.list-freebsd-2004@morbius.sent.com>
In-Reply-To: <44998475.8080707@poklib.org>
References:  <44980305.7010806@poklib.org> <200606202150.22728.list-freebsd-2004@morbius.sent.com> <44998475.8080707@poklib.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe@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. 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606212104.18808.list-freebsd-2004>