From owner-freebsd-questions Fri Sep 27 10:56:24 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 B2AEB37B401 for ; Fri, 27 Sep 2002 10:56:23 -0700 (PDT) Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 613BA43E9E for ; Fri, 27 Sep 2002 10:56:21 -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 g8RHuGU08342; Fri, 27 Sep 2002 20:56:16 +0300 (EETDST) Mime-Version: 1.0 X-Sender: metis@pop.clinet.fi Message-Id: In-Reply-To: References: <87elbf1r7d.fsf@pooh.int> Date: Fri, 27 Sep 2002 20:56:14 +0300 To: swear@attbi.com (Gary W. Swearingen), 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 >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