From owner-freebsd-hackers Fri May 19 23: 4: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.internet.dk (ns.internet.dk [194.19.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 0CFFD37BF2D for ; Fri, 19 May 2000 23:04:05 -0700 (PDT) (envelope-from leifn@neland.dk) Received: (from uucp@localhost) by ns.internet.dk (8.9.2/8.9.3) with UUCP id IAA68895; Sat, 20 May 2000 08:04:00 +0200 (CEST) (envelope-from leifn@neland.dk) Received: from gina (gina.neland.dk [192.168.0.14]) by arnold.neland.dk (8.9.3/8.9.3) with SMTP id IAA85889; Sat, 20 May 2000 08:03:42 +0200 (CEST) (envelope-from leifn@neland.dk) Message-ID: <013501bfc221$2e6a7020$0e00a8c0@neland.dk> Reply-To: "Leif Neland" From: "Leif Neland" To: "Cillian Sharkey" , References: <20000519170026.A29241@psn.ie> Subject: Re: Post-shutdown hook for UPS shutdown? Date: Sat, 20 May 2000 08:02:46 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG How do you control the shutdown? If it is a simple logical signal, i.e. either high or low voltage, perhaps the easiest way would be a hardware solution. It could be as simple as a diode, a large capasitor and a resistor. Your local electronic supplyer could probably build a delay circuit for a few ? or £ ... Leif ----- Original Message ----- From: "Cillian Sharkey" To: Sent: Friday, May 19, 2000 6:00 PM Subject: Post-shutdown hook for UPS shutdown? > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message