From owner-freebsd-questions Fri Sep 27 4: 0:50 2002 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 1472037B401 for ; Fri, 27 Sep 2002 04:00:49 -0700 (PDT) Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFBE943E65 for ; Fri, 27 Sep 2002 04:00:47 -0700 (PDT) (envelope-from Petri.Riihikallio@Metis.fi) Received: from [192.168.0.2] ([212.90.71.47]) by posti.pp.htv.fi (8.11.1/8.11.1) with ESMTP id g8RB0bU28633 for ; Fri, 27 Sep 2002 14:00:38 +0300 (EETDST) Mime-Version: 1.0 X-Sender: metis@pop.clinet.fi Message-Id: Date: Fri, 27 Sep 2002 14:00:33 +0300 To: questions@FreeBSD.ORG From: Petri Riihikallio Subject: Re: How to shut down cleanly by killing power Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >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