Package: apcupsd
Version: 3.10.17-2
Tags: patch

When apcupsd loses connection with the UPS, i.e. the serial connection
is not responding, apcupsd doesn't send an e-mail message to the root
user to notify her/him of the problem until the connection is
reestablished. This is unexpected behavior.

The bug can be demonstrated by unplugging the serial cable while
the system is running; not recommended though. As soon as the serial
connection works again the mail will be delivered, which is sort of
too late by then.

I believe the bug lies in /etc/apcupsd/commfailure, which calls
/sbin/apcaccess, which then blocks until the UPS is back online.

A suggested fix for the bug is included as a patch with this report.

-- 
Best regards,
Tero Jänkä

--- /etc/apcupsd/commfailure.original   2005-04-03 13:49:03.000000000 +0300
+++ /etc/apcupsd/commfailure    2007-02-05 02:52:18.000000000 +0200
@@ -15,7 +15,5 @@
    echo "Subject: $MSG"
    echo " "
    echo "$MSG"
-   echo " "
-   /sbin/apcaccess status
 ) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
 exit 0

Reply via email to