Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2001 01:38:14 -0500
From:      Christopher Farley <chris@northernbrewer.com>
To:        Christopher Hall <hsw@acm.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: rc.shutdown and SmartUPS
Message-ID:  <20010808013811.A61371@northernbrewer.com>
In-Reply-To: <200108080115.f781FnU45606@x4.tucheng.generalresources.com>; from hsw@acm.org on Wed, Aug 08, 2001 at 09:15:49AM %2B0800
References:  <chris@northernbrewer.com> <200108080115.f781FnU45606@x4.tucheng.generalresources.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

My problem was a quirk with NUT. Of course, the disks are still mounted 
while the FreeBSD's shutdown script is waiting on NUT's UPS powerdown 
command. After a bit of experimenting (and using fsck -y), I finally 
discovered a reasonable and simple script for rc.shutdown.

/path/to/ups/powerdown/command &
sleep 2

Whether the sleep value needs to be tweaked for each computer remains
to be seen...

-- 
Christopher Farley
www.northernbrewer.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010808013811.A61371>