Date: Thu, 25 May 2006 01:20:54 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: Scott "Tuc" Ellentuch at T-B-O-H <ml@t-b-o-h.net>, freebsd-questions@freebsd.org Subject: Re: Anyone using sysutils/nut ? Message-ID: <p06230901c09aee35f03f@[128.113.24.47]> In-Reply-To: <200605221454.k4MEsUdn088316@himinbjorg.tucs-beachin-obx-house.com> References: <200605221454.k4MEsUdn088316@himinbjorg.tucs-beachin-obx-house.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 10:54 AM -0400 5/22/06, Scott "Tuc" Ellentuch at T-B-O-H wrote: >Hi, > > I'd like to find out where to put the >"upsdrvctl shutdown" in the shutdown process. Putting >it in rc.shutdown causes me to have dirty filesystems >constantly that sometimes don't allow the system to >come up. It occurs to me that I did save away the message that said the right way to do it: At 11:21 AM -0700 5/19/00, Mike Smith wrote: > > The canonical way to do this is actually to shudown > and reboot. > > In the _startup_ phase, while the root filesystem is > still mounted readonly, you check the UPS status. At > this point, you have access to the disk in a read-only > fashion, and you can power-off (or have the UPS die) > at any time. So, you don't create any flag-file as I had guessed in my previous message. The one thing you need to make sure if is that your UPS-reading program can *run* before /usr is mounted. You could test that by booting up in single-user mode, and see if the program works. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06230901c09aee35f03f>