From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 00:02:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC90616A4CE for ; Wed, 7 Jan 2004 00:02:41 -0800 (PST) Received: from sferics.mongueurs.net (sferics.mongueurs.net [81.80.147.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AB6543D2F for ; Wed, 7 Jan 2004 00:02:39 -0800 (PST) (envelope-from david@landgren.net) Received: from landgren.net (81-80-147-206.bpinet.com [81.80.147.206]) by sferics.mongueurs.net (Postfix) with ESMTP id B18FFE612 for ; Wed, 7 Jan 2004 09:02:36 +0100 (CET) Message-ID: <3FFBBC9C.9080502@landgren.net> Date: Wed, 07 Jan 2004 09:00:28 +0100 From: David Landgren Organization: The Dusty Decadent Delights of Imperial Pompeii User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <3FFACFE7.8080505@landgren.net> In-Reply-To: <3FFACFE7.8080505@landgren.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ps: warning: /var/run/dev.db: No such file or directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 08:02:41 -0000 David Landgren wrote: > I recently rebooted a server that had been running for many months. I > haven't touched the kernel or userland programs since it went into > production. > > The server was rebooted with 'shutdown -h now', powered down, and then > later restarted. > > I've since noticed that cron didn't restart, which is odd, but fixable, > but more importantly, when I run ps, it spits out 'ps: warning: > /var/run/dev.db: No such file or directory' (although, as far as I can > tell, the output is perfectly reasonable). I found out how to fix this, one simple runs dev_mkdb > I'm wondering if one is a symptom of the other. In any event, > /var/run/dev.db is most certainly not there. > > I guess I could reboot the server tonight, but I'm not sure that that > will fix it, as I don't understand the cause. I've searched the archives > a bit, and the best thread I could find dated from 1997, and suggested > that it could be due to an unclean shutdown, which is definitely not the > case here. I wound up rebooting the server, and it looks like as if /etc/rc bombs out half way through. None of the additional daemons are started: cron, inetd, sshd, syslogd... The default route is not set up, and nothing in /usr/local/etc/rc.d is started. I watched the server boot, and I saw nothing that resembled a shell error. Is there a way to tee the output of /etc/rc to a file, so that I could scan it afterwards? Thanks, David -- Commercial OS breeds commerce, whereas free OS breeds freedom, the only thing more dangerous and confusing than commerce. -- Michael R. Jinks, redhat-list, circa 1997