Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2002 20:56:14 +0300
From:      Petri Riihikallio <Petri.Riihikallio@Metis.fi>
To:        swear@attbi.com (Gary W. Swearingen), questions@FreeBSD.ORG
Subject:   Re: How to shut down cleanly by killing power
Message-ID:  <a05111b09b9ba4b46ea3d@[192.168.0.2]>
In-Reply-To: <qzd6qz73f4.6qz@localhost.localdomain>
References:  <bulk.28113.20020926143904@hub.freebsd.org> <a05111b07b9b9ec1c1aac@[192.168.0.2]> <87elbf1r7d.fsf@pooh.int> <a05111b04b9ba22404693@[192.168.0.2]> <qzd6qz73f4.6qz@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
>I've never tried this and it's not the ideal method, but it's simple,
>so I offer it for your consideration:
>
>Put your UPS software on the root partition.
>
>In the software which initiates the mains-failure shutdown, just do
>"shutdown -r now" or "init 6" or "reboot" or whatever.
>
>At the top of /etc/rc, if your UPS monitor says that the mains have
>failed, have your UPS controller switch off the UPS output.

This way the system reboots, but the reboot is interrupted with 
powerdown at early stage. Not ideal, I agree, but a solution still.

I'll still try to find a true solution. I'll post whatever I come up with.
-- 
Cheers,
Petri

Metis / Petri Riihikallio
GSM: +358 400 505 939

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




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