From owner-freebsd-hackers Fri May 19 9: 1:29 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.psn.ie (mailhub.psn.ie [194.106.150.254]) by hub.freebsd.org (Postfix) with ESMTP id 6F04337BDC4 for ; Fri, 19 May 2000 09:01:23 -0700 (PDT) (envelope-from cns@psn.ie) Received: from alto ([192.168.0.254] helo=alto.internal) by mailhub.psn.ie with esmtp (Exim 3.12 #2) id 12spCM-000CNV-00 for hackers@freebsd.org; Fri, 19 May 2000 17:00:26 +0100 Received: from cns by alto.internal with local (Exim 3.12 #1) id 12spCM-0007cf-00 for hackers@freebsd.org; Fri, 19 May 2000 17:00:26 +0100 Date: Fri, 19 May 2000 17:00:26 +0100 From: Cillian Sharkey To: hackers@freebsd.org Subject: Post-shutdown hook for UPS shutdown? Message-ID: <20000519170026.A29241@psn.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Folks, I need to execute a script (which tells the UPS to turn off) *after* the system has come to a safe halt from shutdown -h. I can't place the commands in /etc/rc.shutdown because this is too early in the shutdown sequence. Unfortunately, the UPS in question (APC Back-UPS 650) is not a "smart" one, (i.e. it doesn't have an in-built delay when a shutdown signal is received which gives time for all attached devices to shutdown) and I'm pretty much stuck with it. The software is the Network UPS Tools (NUT) package. Basically, is there currently any way to execute a post-shutdown script once the system has "halted" ? If not, is this feature possible to add ? Thanks in advance, -- Cillian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message