From owner-freebsd-questions@FreeBSD.ORG Wed Jun 21 20:47:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCB2816A479 for ; Wed, 21 Jun 2006 20:47:32 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E9B743D45 for ; Wed, 21 Jun 2006 20:47:32 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 0E6FED83668 for ; Wed, 21 Jun 2006 16:04:21 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by frontend3.internal (MEProxy); Wed, 21 Jun 2006 16:04:21 -0400 X-Sasl-enc: cJmEAjzpbmkznp07HG83ukwegL/iPk6ncGAinUNuoOqV 1150920261 Received: from bb-87-81-140-128.ukonline.co.uk (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mail.messagingengine.com (Postfix) with ESMTP id 836EE4CBB for ; Wed, 21 Jun 2006 16:04:21 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Wed, 21 Jun 2006 21:04:17 +0100 User-Agent: KMail/1.9.3 References: <44980305.7010806@poklib.org> <200606202150.22728.list-freebsd-2004@morbius.sent.com> <44998475.8080707@poklib.org> In-Reply-To: <44998475.8080707@poklib.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606212104.18808.list-freebsd-2004@morbius.sent.com> Subject: Re: rcorder example? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 20:47:32 -0000 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.