From owner-freebsd-questions@FreeBSD.ORG Sun Jun 28 12:35:02 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D0621065672 for ; Sun, 28 Jun 2009 12:35:02 +0000 (UTC) (envelope-from no-spam@people.net.au) Received: from smtp-01.syd.people.net.au (smtp-01.syd.people.net.au [218.214.225.99]) by mx1.freebsd.org (Postfix) with SMTP id 858AB8FC0A for ; Sun, 28 Jun 2009 12:35:01 +0000 (UTC) (envelope-from no-spam@people.net.au) Received: (qmail 3732 invoked from network); 28 Jun 2009 12:29:38 -0000 Received: from unknown (HELO bigblack) (218.214.176.70) by smtp-01.syd.people.net.au with SMTP; 28 Jun 2009 12:29:38 -0000 From: Ian To: freebsd-questions@freebsd.org Date: Sun, 28 Jun 2009 22:04:08 +0930 User-Agent: KMail/1.9.9 References: <200906282054.33434.no-spam@people.net.au> <4A475E7D.6000907@infracaninophile.co.uk> In-Reply-To: <4A475E7D.6000907@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5826663.H7HONKa0Cf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200906282204.14136.no-spam@people.net.au> Cc: Subject: Re: named startup problems upgrading from 7.1p4 to 7.1p5 or 7.1p6 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: Sun, 28 Jun 2009 12:35:02 -0000 --nextPart5826663.H7HONKa0Cf Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 28 Jun 2009 21:43:49 Matthew Seaman wrote: > Ian wrote: > > Hi, I've been meaning to sort this out since the release of 7.1p5, but > > only just got around to it - I have an installation of 7.1 that runs bi= nd > > and has been working fine up until I tried to update the system to 7.1p5 > > (using freebsd-update). As soon as I apply the update & reboot, named > > loads but the startup script hangs. > > > > If I press Ctrl+C, the system continues to boot. If I then run > > /etc/rc.d/named start, named starts, but again the script hangs. I can = do > > DNS lookups while named is running, so it seems to be functioning ok. > > I tried adding various echo statements to /etc/rc.d/named and found that > > the script seems to run right through. The hang occurs where /etc/rc.su= br > > echoes out "Starting named" after the named script has run and that's > > where things seem to stop! Nothing else that is started by the rc.d > > scripts hangs, so I'm guessing /etc/rc.subr is ok. > > > > I did a diff of /etc/rc.d/named before & after the upgrade from p4 to p5 > > (or p6 which has the same issue) and there are no changes to the file. > > Nothing seems to be logged anywhere that shows a problem, so I really > > have no idea what to check next. > > > > The only named entry in rc.conf is named_enable=3D"YES". Doing a > > freebsd-update rollback restores normal operation and given that bind > > actually loads 7 seems to work apart fromthe hanging script, I suspect > > there's nothing wrong with my bind configuration. > > > > Any suggestions? > > Are you sure it's not the thing which starts immediately *after* named th= at > is hanging? Try running: > > # rcorder /etc/rc.d/* /usr/local/etc/rc.d/* > > and see what should come next. Note this command shows the order in which > all of the rc scripts in those directories would run, not just the ones y= ou > have enabled in rc.conf, so you may well have to skip a few lines until y= ou > get to something that is enabled. > > Cheers, > > Matthew Well the fact that if I run /etc/rc.d/named manually after the system has= =20 booted, the script also hangs suggests it's not the next process I have just check however & ntpdate is the next one in the list to be start= ed=20 and that does start correctly - you can see it report the clock being=20 adjusted. Also, when you do a Ctrl+C to break the named script on bootup, i= t=20 says "Script /etc/rc.d/named interrupted". Something I've just realised is that named stays loaded even when you 'brea= k'=20 the script. on bootup and DNS lookups work (I didn't think that was the cas= e=20 originally, but it is). Cheers, =2D-=20 Ian gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc --nextPart5826663.H7HONKa0Cf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkpHY0YACgkQPUlnmbKkJ6DvpwCfaorg3o0afbbo9QQfLSWaSl8O 0icAn1DsiLkL+khvM7PDoXmiX8zZqvIq =LhKL -----END PGP SIGNATURE----- --nextPart5826663.H7HONKa0Cf--