From owner-freebsd-questions@FreeBSD.ORG Thu May 25 00:45:14 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 4AEA816A429 for ; Thu, 25 May 2006 00:45:14 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from cayster.site5.com (cayster.multisite.site5.com [216.118.97.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE13143D48 for ; Thu, 25 May 2006 00:45:13 +0000 (GMT) (envelope-from mikhailg@webanoide.org) Received: from ppp110-20.lns1.hba1.internode.on.net ([150.101.110.20] helo=[192.168.0.4]) by cayster.site5.com with esmtpa (Exim 4.52) id 1Fj3yS-0001uT-1S for freebsd-questions@freebsd.org; Wed, 24 May 2006 20:45:12 -0400 Message-ID: <4474FE14.80205@webanoide.org> Date: Thu, 25 May 2006 10:45:08 +1000 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060308) MIME-Version: 1.0 To: freebsd-questions References: <200605241336.k4ODajd1078702@himinbjorg.tucs-beachin-obx-house.com> In-Reply-To: <200605241336.k4ODajd1078702@himinbjorg.tucs-beachin-obx-house.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: This message has been scanned by ClamAV. X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cayster.site5.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - webanoide.org X-Source: X-Source-Args: X-Source-Dir: 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 00:45:14 -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? Hi, I got the following line in /usr/local/etc/nut/upsmon.conf: SHUTDOWNCMD "/sbin/shutdown -p now" As far as I'm concerned the system powers off cleanly without the need of FSCK. Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: mikhailg@webanoide.org Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B