From owner-freebsd-current@FreeBSD.ORG Sat Oct 17 23:05:08 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F6B51065670 for ; Sat, 17 Oct 2009 23:05:08 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 333498FC1C for ; Sat, 17 Oct 2009 23:05:07 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id n9HN578Z089765 for ; Sat, 17 Oct 2009 17:05:07 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id n9HN57oK089762 for ; Sat, 17 Oct 2009 17:05:07 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 17 Oct 2009 17:05:07 -0600 (MDT) From: Warren Block To: current@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (wonkity.com [127.0.0.1]); Sat, 17 Oct 2009 17:05:07 -0600 (MDT) Cc: Subject: Restarting devd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2009 23:05:08 -0000 Immediately after boot, devd restart fails: # /etc/rc.d/devd restart Stopping devd. Starting devd. devd: devd already running, pid: 398 /etc/rc.d/devd: WARNING: failed to start devd And it's right, devd is not running. Remove the stale pidfile /var/run/devd.pid, and '/etc/rc.d/devd start' goes fine. In fact, after that initial pidfile is removed, restarts are no longer a problem: # /etc/rc.d/devd restart Stopping devd. Starting devd. So why is it a problem with the first run of devd, but not afterwards? Something with /etc/rc.d/devd, or maybe something more general with /etc/rc.subr? FreeBSD lightning 8.0-RC1 FreeBSD 8.0-RC1 #6: Wed Oct 14 18:44:38 MDT 2009 root@lightning:/usr/obj/usr/src/sys/LIGHTNING i386 -Warren Block * Rapid City, South Dakota USA