Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2006 09:49:20 -0400 (EDT)
From:      Peter <petermatulis@yahoo.ca>
To:        Scott Tuc Ellentuch at T-B-O-H <ml@t-b-o-h.net>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Anyone using sysutils/nut ?
Message-ID:  <20060524134920.64009.qmail@web60015.mail.yahoo.com>
In-Reply-To: <200605241336.k4ODajd1078702@himinbjorg.tucs-beachin-obx-house.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--- Scott Tuc Ellentuch at T-B-O-H <ml@t-b-o-h.net> 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 



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