From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078618110422.tru64-unix-managers.marc@archive.invalid> From: "Irene A. Shilikhina" Date: Tue, 14 Oct 1997 09:51:39 +0000 To: tru64-unix-managers Subject: Init & SIGPWR X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078618110422 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 ____________________________________________________________________________