From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 04:39:04 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 6198816A4BF for ; Tue, 9 Sep 2003 04:39:04 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5783E43FBD for ; Tue, 9 Sep 2003 04:39:02 -0700 (PDT) (envelope-from mail23@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.9/8.12.9) with ESMTP id h89BdTna002510; Tue, 9 Sep 2003 13:39:29 +0200 (CEST) (envelope-from mail23@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.9/8.12.9/Submit) id h89BdS8N002509; Tue, 9 Sep 2003 13:39:28 +0200 (CEST) X-Authentication-Warning: ei.bzerk.org: bulk set sender to mail23@bzerk.org using -f Date: Tue, 9 Sep 2003 13:39:28 +0200 From: Ruben de Groot To: admin Message-ID: <20030909113928.GA2434@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , admin , K Anderson , freebsd-questions@freebsd.org References: <20030909053406.M35653@enabled.com> <3F5D6840.1010606@comcast.net> <20030909055829.M25351@enabled.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030909055829.M25351@enabled.com> User-Agent: Mutt/1.4.1i 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 Reply-To: Ruben de Groot List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 11:39:04 -0000 On Mon, Sep 08, 2003 at 09:59:46PM -0800, admin typed: > 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? Something like this will remove stale .pid files: (in /etc/crontab) @reboot root cd /var/run; /bin/rm -rf *.pid Ruben > > - 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"