From owner-freebsd-questions@FreeBSD.ORG Thu May 25 05:21:33 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5BACE16A42F for ; Thu, 25 May 2006 05:21:33 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id B741443D5C for ; Thu, 25 May 2006 05:21:22 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.13.1/8.13.1) with ESMTP id k4P5KsFK030035; Thu, 25 May 2006 01:20:55 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <200605221454.k4MEsUdn088316@himinbjorg.tucs-beachin-obx-house.com> References: <200605221454.k4MEsUdn088316@himinbjorg.tucs-beachin-obx-house.com> Date: Thu, 25 May 2006 01:20:54 -0400 To: Scott "Tuc" Ellentuch at T-B-O-H , freebsd-questions@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) on 128.113.2.3 Cc: Subject: Re: Anyone using sysutils/nut ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2006 05:21:33 -0000 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