From owner-freebsd-questions@FreeBSD.ORG Wed Jul 23 22:32:39 2008 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 9015B1065670 for ; Wed, 23 Jul 2008 22:32:39 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id 103348FC0C for ; Wed, 23 Jul 2008 22:32:38 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id m6NMWZYf063637; Thu, 24 Jul 2008 00:32:36 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 15F0CBA83; Thu, 24 Jul 2008 00:32:35 +0200 (CEST) Date: Thu, 24 Jul 2008 00:32:35 +0200 From: Roland Smith To: Dave Abouav Message-ID: <20080723223235.GA65902@slackbox.xs4all.nl> References: <4887A1D4.2070404@transducertech.com> <4887AADF.5080102@transducertech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline In-Reply-To: <4887AADF.5080102@transducertech.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: system hangs on boot up if no internet available 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, 23 Jul 2008 22:32:39 -0000 --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 23, 2008 at 03:04:15PM -0700, Dave Abouav wrote: > Chuck Swiger wrote: > > On Jul 23, 2008, at 2:25 PM, Dave Abouav wrote: > >> I setup a FreeBSD server (v 6.1) for my company as a simple Samba=20 > >> server. It works fine. Except once in awhile our access to the=20 > >> outside internet goes out (due to our ISP), and when it does the=20 > >> FreeBSD server gets hung up, even after rebooted. What does hung up mean in the case that it's not rebooted?=20 > >> This happened this=20 > >> morning, so I put a console on it, and rebooted it. I saw that it=20 > >> gets hung trying to start sshd. No error messages are given. If I hit= =20 > >> Control-C, to skip loading sshd, then the rest of the boot-up goes=20 > >> normally and people can again access the server. Any ideas how I can= =20 > >> avoid this problem? I'd rather not skip the loading of sshd. I don't= =20 > >> have any special programs on the server that contact the outside world. > > > > It's probably doing something which needs a DNS lookup. Do you have a= =20 > > subnet-local nameserver available, or does simply waiting for 2=20 > > minutes or so for a timeout do the trick? > > [please don't top-post!] > Our DNS goes through our ISP. The IP addresses of their DNS servers are= =20 > hard-coded into the server's /etc/rc.conf file. No amount of waiting=20 > seems to help. It always just hangs trying to load sshd. First, try starting sshd in test mode (-t) to see if your config and keys are OK.=20 Then, with the outside connection down, try starting sshd with the -d and -e options (and other options that you might have specified in /etc/rc.conf) to see where it goes wrong. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiHsYMACgkQEnfvsMMhpyW7AACeNC0Y1E7WYVzzQ2n+o6iY7QeC lB8AniQuhyWw+hOT2dktF7JuhhCXRvK6 =IjqP -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l--