Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2002 16:21:51 +0200
From:      Ruben de Groot <fbsd-q@bzerk.org>
To:        Jon Larssen <jonlarssen@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: UPS scenario; HOWTO?
Message-ID:  <20020613162151.A63548@ei.bzerk.org>
In-Reply-To: <F9R2J1EoqOGwJjIyuHc0001bedd@hotmail.com>; from jonlarssen@hotmail.com on Thu, Jun 13, 2002 at 09:34:57AM -0400
References:  <F9R2J1EoqOGwJjIyuHc0001bedd@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 13, 2002 at 09:34:57AM -0400, Jon Larssen typed:
> Hi,
> 
> I'm adding a UPS to my FreeBSD server, and after reading docs and such, I 
> think I understand the process. But I have one question regarding a far 
> fetched scenario. Just imagine this:
> 
> (1) Power goes out, the UPS goes into "battery" mode.
> 
> (2) The power daemon notices this and allows a 5 minutes
>     (complete configurable) grace time just in case
>     power is restored in that chunk of time.
> 
> (3) Tough luck! Nope, no AC power. The power daemon than
>     signals the operating system to shutdown.
> 
> (4) As was told to do so, FreeBSD will shutdown. That
>     ends with a message of the like of "Press any key
>     to reboot".
> 
> (5) The server, then, is officially halted. We've got no
>     AC power and the UPS battery will soon be drained
>     out.
> 
> (6) Wait! AC is restored and the UPS was still up. The
>     lights go green and the buzzer finally quiets. But
>     the server will be in "Press any key to reboot" mode
>     indefinitely...
> 
> or until wither me or one of my coworkers actually press a key.
> 
> This problem has a solution? Hack? Workaround?

When using APM you can halt the server with shutdown -p. That way the power 
will be turned off completely. When AC is restored later, the system will
boot again.

> 
> Best regards,
> Jon Larssen.
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

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?20020613162151.A63548>