Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2002 14:00:33 +0300
From:      Petri Riihikallio <Petri.Riihikallio@Metis.fi>
To:        questions@FreeBSD.ORG
Subject:   Re: How to shut down cleanly by killing power
Message-ID:  <a05111b01b9b9ea46ac33@[192.168.0.2]>

next in thread | raw e-mail | index | archive | help
>No, you are not the only one using UPS, but in my case, I don't use NUT and
>don't quite understand the problem you have with the shutdown. My scripts
>use shutdown -p just fine (rather than shutdown -h). It will only use that
>when it reaches the final designated time to do so. If power returns, then
>it stops the countdown just flawlessly and returns to normal operations. It

Thanks for your reply!

Have you thought about this situation:

1. The UPS is almost empty, and the monitoring system issues shutdown -p
2. The system starts the shutdown sequence. It can take well over a 
minute. There is no way to stop it now.
3. Power returns before the UPS is completely empty.

Now the system has shut down with the -p flag, but power is 
continuously available. The system won't boot automatically, no 
matter what you have set up in BIOS, because the power never was down.

It is a timing issue. That's why UPSes have a way of killing battery 
power. This guarantees at least a short break of power. When the 
power returns, the BIOS settings can start the system.

I currently have a setup like yours, but now that I am aware of the 
possibility of deadlock, I would like to avoid it.
-- 
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?a05111b01b9b9ea46ac33>