From owner-freebsd-questions@FreeBSD.ORG Wed May 24 13:49:22 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 551B916A438 for ; Wed, 24 May 2006 13:49:22 +0000 (UTC) (envelope-from petermatulis@yahoo.ca) Received: from web60015.mail.yahoo.com (web60015.mail.yahoo.com [209.73.178.78]) by mx1.FreeBSD.org (Postfix) with SMTP id 4B6E343D49 for ; Wed, 24 May 2006 13:49:21 +0000 (GMT) (envelope-from petermatulis@yahoo.ca) Received: (qmail 64011 invoked by uid 60001); 24 May 2006 13:49:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hteWWvgLi1Z/7j4Mokl004Cg7debs2pzaaT66WGLe/u6xH2RRsTb2y6Nsyihmp0SafNX8NIMANpuZavbDl5iGzcKSA5Bw2dZNGlDsqS2NXpWaN7ZUrF/jVqtJbFiIRO/t3GVevzn7Lt8c51sUlmgFNxJZfe/iIWAK/zAcaUYQKI= ; Message-ID: <20060524134920.64009.qmail@web60015.mail.yahoo.com> Received: from [64.228.184.35] by web60015.mail.yahoo.com via HTTP; Wed, 24 May 2006 09:49:20 EDT Date: Wed, 24 May 2006 09:49:20 -0400 (EDT) From: Peter To: Scott Tuc Ellentuch at T-B-O-H In-Reply-To: <200605241336.k4ODajd1078702@himinbjorg.tucs-beachin-obx-house.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-questions 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: Wed, 24 May 2006 13:49:22 -0000 --- Scott Tuc Ellentuch at T-B-O-H wrote: > > > I'm going by : > > > > > > /usr/local/share/doc/nut/shutdown.txt > > > > > > Subsection "How you set it up", item #2 : > > > > > > 2. Edit your shutdown scripts to check for the POWERDOWNFLAG so > they > > > know > > > when to power off the UPS. You must check for this file, as > you > > > don't > > > want this to happen during normal shutdowns! > > > > > > You can use upsdrvctl to start the shutdown process in your > UPS > > > hardware. Use this script as an example, but change the paths > to > > > suit your system: > > > > My bad. I did edit rc.shutdown on both a 5.4 and a 6.0 system with > no > > troubles. The end of my file shows this: > > > > # Inserted next 5 lines March 13, 2006 for UPS shutdown. > > if (test -f /etc/killpower) > > then > > echo "Killing the power, bye!" > > /usr/local/libexec/nut/upsdrvctl shutdown > > fi > > > > echo '.' > > exit 0 > > > But doesn't that immediately shut down your system causing it > to need FSCK when it comes back up? > > Thanks, Tuc > I did not observe this happening. Is there any other way? What tips did you get on the nut list? Peter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com