From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 15 15:27:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D51431065679; Sun, 15 Jun 2008 15:27:20 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from ftp.translate.ru (ftp.translate.ru [195.131.4.140]) by mx1.freebsd.org (Postfix) with ESMTP id 971A68FC0A; Sun, 15 Jun 2008 15:27:20 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from desktop.home.serebryakov.spb.ru (unknown [89.163.10.141]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 0F6E313DF51; Sun, 15 Jun 2008 19:08:02 +0400 (MSD) Date: Sun, 15 Jun 2008 19:08:10 +0400 From: Lev Serebryakov X-Mailer: The Bat! (v3.99.3) Professional Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1283529703.20080615190810@serebryakov.spb.ru> To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mtm@freebsd.org Subject: UPS shutdown with `sysutils/nut': where should I place "power off" command to UPS? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2008 15:27:20 -0000 Hello, freebsd-hackers. nut's documentation says[1], that UPS should be switched off from shutdown scripts in point, when FSes are synced and re-mounted as R/O. google shows thread[2], according to which, last line of `/etc/rc.shutdown' is too early, and if power will be switched off at this line, FSes will be dirty on boot. What is proper place for "power off" command on FreeBSD system? Please, note, that it is NOT `shutdown -p', but signal to UPS to switch off EXTERNAL power when battarey is almost dead, and no external power, and `shutdown -p' turns off only computer, not UPS. [1] http://www.networkupstools.org/doc/2.2.0/shutdown.html [2] http://lists.freebsd.org/pipermail/freebsd-questions/2006-May/122764.htm -- // Black Lion AKA Lev Serebryakov