From owner-freebsd-stable@FreeBSD.ORG Fri Feb 3 05:51:24 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id BB3DF106568D for ; Fri, 3 Feb 2012 05:51:24 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-150-251.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id EE3041A89CF; Fri, 3 Feb 2012 05:50:58 +0000 (UTC) Message-ID: <4F2B75C2.6090005@FreeBSD.org> Date: Thu, 02 Feb 2012 21:50:58 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0) Gecko/20120201 Thunderbird/10.0 MIME-Version: 1.0 To: Jeremy Chadwick References: <20120202212222.e940f64c.torfinn.ingolfsen@broadpark.no> <20120202214550.GA6965@icarus.home.lan> In-Reply-To: <20120202214550.GA6965@icarus.home.lan> X-Enigmail-Version: 1.3.5 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Torfinn Ingolfsen , freebsd-stable@freebsd.org Subject: Re: FreeBSD 8.2-stable: devd fails to restart X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 05:51:24 -0000 On 02/02/2012 13:45, Jeremy Chadwick wrote: > On Thu, Feb 02, 2012 at 09:22:22PM +0100, Torfinn Ingolfsen wrote: >> Hi, >> >> I thought this bug was fixed back in 2009? >> root@kg-v7# uname -a >> FreeBSD kg-v7.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #7: Sat Jul 9 23:00:31 CEST 2011 root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 >> root@kg-v7# >> root@kg-v7# service devd status >> devd is running as pid 555. >> root@kg-v7# service devd restart >> Stopping devd. >> Starting devd. >> devd: devd already running, pid: 555 >> /etc/rc.d/devd: WARNING: failed to start devd >> root@kg-v7# service devd status >> devd is not running. >> >> What gives? > > This is probably "what gives", as it's a common problem with all sorts > of daemons and is not specific to devd in the least: > > - devd is running (pid 555) > - Admin issues "service devd restart" > -- devd is sent SIGTERM; devd internally starts shutting down, > but is not fully dead yet. "kill" does not block (wait) for > processes to end, obviously No, but wait_for_pids() does. The OP's /etc is out of date. -- It's always a long day; 86400 doesn't fit into a short. Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/