From owner-freebsd-questions Fri Sep 27 10:20:45 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 67EF737B401 for ; Fri, 27 Sep 2002 10:20:44 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id C21A943E65 for ; Fri, 27 Sep 2002 10:20:43 -0700 (PDT) (envelope-from swear@attbi.com) Received: from localhost.localdomain ([12.242.158.67]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020927172043.OJTY6431.sccrmhc01.attbi.com@localhost.localdomain>; Fri, 27 Sep 2002 17:20:43 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id g8RHN23q012110; Fri, 27 Sep 2002 10:23:02 -0700 (PDT) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.5/8.12.5/Submit) id g8RHMtD8012107; Fri, 27 Sep 2002 10:22:55 -0700 (PDT) (envelope-from swear@attbi.com) X-Authentication-Warning: localhost.localdomain: jojo set sender to swear@attbi.com using -f To: Petri Riihikallio Cc: Kirk Strauser , questions@FreeBSD.ORG Subject: Re: How to shut down cleanly by killing power References: <87elbf1r7d.fsf@pooh.int> From: swear@attbi.com (Gary W. Swearingen) Date: 27 Sep 2002 10:22:55 -0700 In-Reply-To: Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. References: init(8), rc(8), shutdown(8), reboot(8) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message