I am running tests on my system and UPS, making sure that it is reliably able 
to come up, detect power loss, shutdown safely, and then come back up when the 
power returns.

It does that MOST of the time.  However, a significant part of the time, the 
system comes up, and then doesn't respond to loss of power.  Doing some 
checking, I find that the reason is because upsd never started.  Capturing its 
output, I see that it says :

Fatal error: A previous upsd instance is already running!
Either stop the previous instance first, or use the 'reload' command.

Again note that this only happens SOME of the time....all other times, all 3 
things get started that are supposed to (upsdrvctl, upsd, upsmon).  Even when 
upsd fails, the other two services start.

This is being run in Porteus 3.1 with nut 2.7.2.  I'm calling my script from 
/etc/rc.d/rc.local.  This script contains:

#!/bin/sh
/usr/local/ups/sbin/upsdrvctl -u ups start
sleep 2
/usr/local/ups/sbin/upsd  -u ups
sleep 2
/usr/local/ups/sbin/upsmon -u ups


I checked that upsd wasn't getting started from anywhere else, and I looked in 
the NUT code to see if I could figure out why it thought upsd was already 
started, but nothing was obvious.

Does anyone have any other suggestions for tracking down why upsd errors out 
like that sometimes?

Sincerely,
Rob Groner
Software Engineer

RTD Embedded Technologies, Inc.
ISO 9001 and AS9100 Certified
Ph: 814-234-8087
www.rtd.com<http://www.rtd.com/>

_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to