[ILUG] UPS signalling
conor.daly at oceanfree.net
Thu Sep 7 20:07:29 IST 2000
On Thu, Sep 07, 2000 at 11:38:48AM +0100 or so it is rumoured hereabouts,
Declan Grady thought:
> Mabye a bit off-topic...
> I have an APC smart-ups which talks to a SCO box, and does auto-shutdown
> after a certain length of time on battery.
> I also have a redhat box on the same ups, but no communication with the
> ups.. How could I get it to do an orderly poweroff as well ? .. Is there
> some way I can get the SCO box to tell it to poweroff ?
One obvious way is to have the SCO box email root at redhat.box with a
suitable subject. Have redhat root's .procmail fire off a shutdown script
on receipt of one of these messages.
You'd need to do some accounting for the time it takes for an email to get
delivered and acted upon though. Maybe have some kind of "Hold on, I
didn't mean that!" escape available also.
Conor Daly <conor.daly at oceanfree.net>
Domestic Sysadmin :-)
More information about the ILUG