From owner-freebsd-questions Tue Aug 7 18:16:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from h3.generalresources.com (h3.generalresources.com [211.21.66.252]) by hub.freebsd.org (Postfix) with ESMTP id AF7EE37B405 for ; Tue, 7 Aug 2001 18:16:19 -0700 (PDT) (envelope-from hsw@acm.org) Received: from server.tucheng.generalresources.com (h1.generalresources.com [211.21.66.250]) by h3.generalresources.com (8.11.4/8.11.4) with ESMTP id f781auH81016; Wed, 8 Aug 2001 09:36:56 +0800 (CST) (envelope-from hsw@acm.org) Received: from x4.tucheng.generalresources.com (x4.tucheng.generalresources.com [192.168.2.4]) by server.tucheng.generalresources.com (8.11.4/8.11.4) with ESMTP id f781Fn059062; Wed, 8 Aug 2001 09:15:49 +0800 (CST) (envelope-from hsw@acm.org) Received: from x4.tucheng.generalresources.com (localhost [127.0.0.1]) by x4.tucheng.generalresources.com (8.11.4/8.11.3) with ESMTP id f781FnU45606; Wed, 8 Aug 2001 09:15:49 +0800 (CST) (envelope-from hsw@acm.org) Message-Id: <200108080115.f781FnU45606@x4.tucheng.generalresources.com> To: Christopher Farley Cc: questions@FreeBSD.ORG From: Christopher Hall Reply-To: Christopher Hall Subject: Re: rc.shutdown and SmartUPS In-Reply-To: Message from Christopher Farley of "Tue, 07 Aug 2001 16:13:25 EST." <20010807161323.A33850@northernbrewer.com> X-Operating-System: FreeBSD X-Mailer: Exmh Date: Wed, 08 Aug 2001 09:15:49 +0800 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 My machines have dumb UPS connected to COM2 and are monitored by a little program that periodically checks the modem control lines. After the UPS has been on battery power for a few minutes the program issues a "shutdown -r now". The boot loader runs some Forth code that checks the UPS status again if still on battery power it sets the power down ups signal for 2 seconds then issues a normal boot. (The UPS will not turn off if the power came back on an the shutdown signal is applied) I also set the BIOS to power on the ATX PSU when AC is restored. The ups also restart when power is reapplied. Only one problem with a new microATX/Asus-A7S-VM/SiS/Duron system is that when it powers back on the BIOS says that CPU speed incorrect and prompts to change it. I have not seen this problem with any of the other systems. In message <20010807161323.A33850@northernbrewer.com>, Christopher Farley writes: >I've been testing my configuration of NUT (Network UPS Tool, >/usr/ports/sysadmin/nut). Everything seems to be working quite well, >however I'm having problems sequencing the powerdown of the UPS. >I'd really like to use nut, because I have a wide variety of different >UPSes in my organization, and many of them are dumb. > >I'm shutting down the UPS from /etc/rc.shutdown, however the UPS shuts >down before the root partition is dismounted. This obviously defeats the >purpose of a graceful shutdown! > >Does anybody shut down their UPS from rc.shutdown, and if so, how? > >-- >Christopher Farley >www.northernbrewer.com > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > --- Christopher Hall Fax: +886-2-2795-3030 Christopher Hall Phone: +886-2-2795-5799 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message