From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 22:59:51 2003 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 1845216A4BF for ; Mon, 8 Sep 2003 22:59:51 -0700 (PDT) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 825DD43FEC for ; Mon, 8 Sep 2003 22:59:50 -0700 (PDT) (envelope-from admin2@enabled.com) Received: from enabled.com (localhost.enabled.com [127.0.0.1]) by typhoon.enabled.com (8.12.9/8.12.9) with ESMTP id h895xk0T009935; Mon, 8 Sep 2003 22:59:46 -0700 (PDT) (envelope-from admin2@enabled.com) From: "admin" To: K Anderson , admin Date: Mon, 8 Sep 2003 21:59:46 -0800 Message-Id: <20030909055829.M25351@enabled.com> In-Reply-To: <3F5D6840.1010606@comcast.net> References: <20030909053406.M35653@enabled.com> <3F5D6840.1010606@comcast.net> X-Mailer: Open WebMail 2.01 20030425 X-OriginatingIP: 131.161.240.206 (admin2) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 4.8 local startup issues 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: Tue, 09 Sep 2003 05:59:51 -0000 On Mon, 08 Sep 2003 22:42:24 -0700, K Anderson wrote > admin wrote: > > running: > > FreeBSD 4.8-STABLE > > > > okay I am having a strange issue. > > > > after the last reboot after my FreeBSD machine became unreachable - and > > required a power cycle. mostly all processes listed in /usr/local/etc/rc.d > > did not start. this only happens very rarely and has happens after FreeBSD > > crashed or is not brought down very cleanly. can somebody recommend a way to > > auto run these scripts - and make sure these files get executed on boot up. > > > > how can I make sure processes are running correctly with automation. > > > > the following line exists in my /etc/defaults/rc.conf file: > > > > --- snip --- > > > > local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. > > > > --- snip --- > > > > - noah > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > You can create some sort of cron task that checks for running > processes and if it doesn't see it then it starts it up accordingly. okay cool. thanks for responding. do you have an example of a script that can do this. say the machine does not shut down properly - arent there stale .pid files left behind. how do I account for this in the cron job script? are there other ways to write this script to make sure things start properly and remain running? - Noah