Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2009 22:04:08 +0930
From:      Ian <no-spam@people.net.au>
To:        freebsd-questions@freebsd.org
Subject:   Re: named startup problems upgrading from 7.1p4 to 7.1p5 or 7.1p6
Message-ID:  <200906282204.14136.no-spam@people.net.au>
In-Reply-To: <4A475E7D.6000907@infracaninophile.co.uk>
References:  <200906282054.33434.no-spam@people.net.au> <4A475E7D.6000907@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906282204.14136.no-spam>