Linux gurus: powstatd UPS automation configuration

jkersenbr

Golden Member
Jun 22, 2000
1,691
0
0
OK. I'm trying to configure my home network server to automatically shutdown in the event of a power failure.

My UPS is a CyberPower99 720VA. I'm running Linux-Mandrake 7.1. CyberPower recommends the powstatd program for this UPS.

The program compiles without errors. I have followed the instructions in the powstatd man to the letter.

I get the error that the following doesn't exist at boot:
/etc/rc.d/rc: /etc/rc.d/rc3.d/S91powstatd

This file does exist. It is a symbolic link that points to another file which does exist whose path I've fogotten to write down.

Obviously, the daemon or whatever isn't starting. My server does not respond to signals from the UPS. When running in test mode (ignoring the init error), powstatd can shutdown the UPS.

Does anyone have any experience with powstatd? Thought I'd ask here before wasting my time writing to the powstatd author.

Thanks.
Jeremy
jkersenbr@flashmail.com
 

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
S91powstatd links to a startup script in /etc/rc.d/init.d/, you should be able to cd to /etc/rc.d/init.d/ and type "./powstatd status", this will run the script and check for the status of the daemon (providing status is one of the options in the script, you can edit the script by hand using emacs to see what it does). As an alternate you can type "ps aux | grep powstatd" and see if you have a running daemon. If the daemon isn't running try "./powstatd start" at the /etc/rc.d/init.d/ directory and see if you get any error messages.

One thing to remember is that for the rc3.d scripts to work you must be running in run level 3. Also check your permisions on the script and toggle the executable bit.