From owner-freebsd-questions Wed Aug 8 9:41:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from localhost.localdomain (host68.207.55.120.aadsl.com [207.55.120.68]) by hub.freebsd.org (Postfix) with ESMTP id D09E537B401 for ; Wed, 8 Aug 2001 09:41:56 -0700 (PDT) (envelope-from swear@aa.net) Received: (from jojo@localhost) by localhost.localdomain (8.11.3/8.11.3) id f78Ghpk63457; Wed, 8 Aug 2001 09:43:52 -0700 (PDT) (envelope-from swear@aa.net) X-Authentication-Warning: localhost.localdomain: jojo set sender to swear@aa.net using -f To: Christopher Farley Cc: Christopher Hall , questions@FreeBSD.ORG Subject: Re: rc.shutdown and SmartUPS References: <200108080115.f781FnU45606@x4.tucheng.generalresources.com> <20010808013811.A61371@northernbrewer.com> From: swear@aa.net (Gary W. Swearingen) Date: 08 Aug 2001 09:43:50 -0700 In-Reply-To: <20010808013811.A61371@northernbrewer.com> Message-ID: Lines: 29 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 Christopher Farley writes: > Christopher Hall (hsw@acm.org) wrote: > > > After the UPS has been on battery power for a few minutes the program issues > > a "shutdown -r now". > > For a while I considered forcing a reboot and then dealing with the > shutdown during the boot-up. It seems kind of weird to be rebooting the > computer while the UPS is screaming about its battery being critically > low. I've been suprised that I've not seen anyone consider this before (when I investigated about ten USP programs while using Linux). Most seemed more concerened about having their system get running again unattended. I was concerned about the system trying to boot up and shut down while the mains power was going on and off while the battery was near dead. A small risk, but as I'm not running a server, one I needn't take. I chose to configure the boot manager to require user input so that the computer can be powered up and down without ever writing to the disks. I still haven't figured how to shutdown properly in FreeBSD as it seems more of the shutdown process happens in "init" (as opposed to scripts) than in Linux where I could change a script to shut down the UPS after the disks are unmounted. I was planning to write a script to shutdown the Linux way. I'll have to look into the software you're discussing. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message