From owner-freebsd-rc@FreeBSD.ORG Tue Oct 23 12:05:11 2007 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86EE216A46C for ; Tue, 23 Oct 2007 12:05:11 +0000 (UTC) (envelope-from mmakonnen@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 4212A13C4BF for ; Tue, 23 Oct 2007 12:05:11 +0000 (UTC) (envelope-from mmakonnen@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so3255305pyb for ; Tue, 23 Oct 2007 05:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=/6ZXZyD/bT3KMEdezLRsDx+tIYj2+Bc2FK4kmmj+Ugw=; b=LoUxnjnVQ4V3WubwulmjO4A3fwJWdwtLrwGrHoE9g3GB3nFxjyLKskEGDbSIHOwNDC1vM73ZY+ANZ0sZpGJ9SnneLPUhA8yn7m0xf/dVuVAvA7mXW71CRfLWPFHo/FG5HJhBkzOHYhF++bBx5ao6aGVtUqrqEEGC3TQaBFyX0kg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=NT3tfwL0befgLJKZElD1PC3XaZCCMLBGaETr3I1kTSh5EYX6GM2IObLAcCh/kGQo9NJ8g2e9NKanhrvCeRJ6rrF2oVfIngK6fyJLIyDjmIdJgvuG0p1IAb+CpA6wffmy3qrqs68Nt5ma8CLqi/ECqW6vyY8eZgXbxKArjgrAAB8= Received: by 10.65.53.3 with SMTP id f3mr12038598qbk.1193141102517; Tue, 23 Oct 2007 05:05:02 -0700 (PDT) Received: by 10.65.239.20 with HTTP; Tue, 23 Oct 2007 05:05:02 -0700 (PDT) Message-ID: <584bfc3f0710230505i29e8f19aofc4e66d0aee7b7c1@mail.gmail.com> Date: Tue, 23 Oct 2007 15:05:02 +0300 From: "Mike Telahun Makonnen" Sender: mmakonnen@gmail.com To: "John Marshall" In-Reply-To: <471D7F68.8070308@riverwillow.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <471D7F68.8070308@riverwillow.com.au> X-Google-Sender-Auth: 93d0a7843de0aaf9 Cc: freebsd-rc@freebsd.org Subject: Re: How to debug rc hangs? X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2007 12:05:11 -0000 On 10/23/07, John Marshall wrote: > > I have tried setting rc_debug="YES" in rc.conf but that doesn't show me > any more than I already know (e.g. last line before mountd hang is: > "/etc/rc: DEBUG: run_rc_command: doit: /usr/sbin/mountd -l" It seems to me that if it's getting this far, that the problem probably is not in rc.d. The next thing it does after that debug message is eval the $doit line you saw, so either the eval command is missbehaving or the problem is with the daemon and not rc.d. What does CTR-t say when it hangs? Also, I noticed all three programs you listed are network daemons. My guess is they are not actually hung, they only *appear* to hang because they're wating on some sort of network resource (DNS maybe?). Cheers, Mike.