Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2001 07:53:13 +0100 (CET)
From:      Leif Neland <leifn@neland.dk>
To:        Brian Reichert <reichert@numachi.com>
Cc:        Udo Erdelhoff <ue@nathan.ruhr.de>, freebsd-isp@FreeBSD.ORG
Subject:   Re: detecting uncontrolled reboot?
Message-ID:  <Pine.BSF.4.21.0102160740250.11259-100000@arnold.neland.dk>
In-Reply-To: <20010215141541.P91352@numachi.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 15 Feb 2001, Brian Reichert wrote:

> On Thu, Feb 15, 2001 at 07:34:42PM +0100, Udo Erdelhoff wrote:
> > Please not that this isn't 100% proof. For a better solution, you should
> > convert the flag file into an entry in your database. After all, you don't
> > care if the system crashes, you only care if the system crashes while
> > your database is running.
> 
> I do realize that how to handle a messy shutdown can vary on a
> service-by-service basis.  I was hoping to tap into that part of
> the boot process that tries to mount the filesystema.
> 
> I'm going to poke at patching 'rc'.  I _think_ that if $1 is
> 'autoboot', then it's beginning the disk checks.  It'd be cool if
> there was a 'dirty boot' kernel variable I could set...
> 
Wouldn't just checking for a /var/db/mysql/${uname}.pid do?

I think the pid-file is removed at a clean database shutdown.

Leif



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0102160740250.11259-100000>