From: "Irene A. Shilikhina" <irene () alpha ! iae ! nsk ! su>
To: tru64-unix-managers
Subject: Init & SIGPWR
Date: Tue, 14 Oct 1997 09:51:39 +0000 [thread overview]
Message-ID: <96078618110422.tru64-unix-managers.marc@archive.invalid> (raw)
Hello DU managers,
we have DEC 2000 model 300 with DU 3.2c & APC Back-UPS 600. Since we
can't afford to use a UPS such as SMART, it's no available powerchute
soft that would fit to our circumstance. Therefore I was interested in
something about powerd written by Lynux folk. I have already written my
simplest version just to run shutdown on power failure and then to send
a signal to the UPS to shutdown it. I have prepared a customized cable.
Before starting my experiment, I tried to make sure that the init indeed
processes the SIGPWR signal as I expect.
In my DU 3.2c, according the manual on inittab, the action powerfail
specifies that if init receives the SIGPWR power fail signal,
it executes the process associated with this line.
I included the following string to the inittab:
pf:1234:powerfail:/bin/echo "Power problem" > /etc/mypowerfail 2>&1
and as root did :
#sync;sync;sync;kill -SIGPWR 1
... and nothing happened, /etc/mypowerfail not found.
The same was when I tried
pf::powerfail:/bin/echo "Power problem" > /dev/console 2>&1
I am under the impression that the SIGPWR is trapped by the init...
Couldn't anybody please tell me what I perceive wrong?
Thanks,
Irene.
P.S. The command "init q" I tried too.
____________________________________________________________________________
Irene A. Shilikhina (e-mail: irene@alpha.iae.nsk.su)
Institute of Automation & Electrometry
Novosibirsk, Russia
____________________________________________________________________________
reply other threads:[~1997-10-14 9:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox