From owner-freebsd-rc@FreeBSD.ORG Tue Oct 23 05:13:53 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 12C0316A420 for ; Tue, 23 Oct 2007 05:13:53 +0000 (UTC) (envelope-from John.Marshall@riverwillow.com.au) Received: from mail2.riverwillow.net.au (ns2.riverwillow.net.au [203.58.93.41]) by mx1.freebsd.org (Postfix) with ESMTP id 8770413C481 for ; Tue, 23 Oct 2007 05:13:52 +0000 (UTC) (envelope-from John.Marshall@riverwillow.com.au) Received: from rwmail.mby.riverwillow.net.au (rwsrv06.rw2.riverwillow.net.au [172.25.25.16]) by mail2.riverwillow.net.au (8.14.1/8.14.1) with ESMTP id l9N4wNlg014870 for ; Tue, 23 Oct 2007 14:58:23 +1000 (AEST) Received: from [172.25.25.68] ([172.25.25.68] RDNS failed) by rwmail.mby.riverwillow.net.au with Microsoft SMTPSVC(6.0.3790.3959); Tue, 23 Oct 2007 14:58:23 +1000 Message-ID: <471D7F68.8070308@riverwillow.com.au> Date: Tue, 23 Oct 2007 14:58:16 +1000 From: John Marshall Organization: Riverwillow Pty Ltd User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-rc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Oct 2007 04:58:23.0556 (UTC) FILETIME=[56E61840:01C81531] Subject: 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 05:13:53 -0000 A few weeks ago I upgraded a server from 6.2-RELEASE to 7.0-PRERELEASE. I re-built all ports on the new platform. During startup, the following servers fail to start: - mountd - squid - cvsupd The system boots happily and rc does its thing up until "Starting mountd" and sulks until I intervene with ctrl-C; at which point everything continues until "Starting squid" (interrupt) and then "Starting cvsupd" (interrupt). After startup has completed, the following work just fine: - /etc/rc.d/mountd start - /usr/local/etc/rc.d/squid start - /usr/local/etc/rc.d/cvsupd start I held out until 7.0-BETA1 and upgraded to that but still have the same symptoms. 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" So, are there any clever configuration switches to aid with this debugging? Otherwise I'll just plough through manually editing rc.conf "foo_enable" settings until I discover the PROVIDE/REQUIRE loop (or something else). Thank you. -- John Marshall