Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 May 2000 08:02:46 +0200
From:      "Leif Neland" <leifn@neland.dk>
To:        "Cillian Sharkey" <cns@psn.ie>, <hackers@FreeBSD.ORG>
Subject:   Re: Post-shutdown hook for UPS shutdown?
Message-ID:  <013501bfc221$2e6a7020$0e00a8c0@neland.dk>
References:  <20000519170026.A29241@psn.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <cns@psn.ie>
To: <hackers@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?013501bfc221$2e6a7020$0e00a8c0>