I had a chance to test this on the Lenny machine where the problem was
first seen.  Replacing one line in the init script allows the machine
to send the shutdown command to the UPS:

   poweroff)
     flag=`sed -ne 's#^ *POWERDOWNFLAG *\(.*\)$#\1#p' /etc/nut/upsmon.conf`
     wait_delay=`sed -ne 's#^ *POWEROFF_WAIT= *\(.*\)$#\1#p' /etc/default/nut`
     if [ -f "$flag" ] ; then
-      if /sbin/upsmon -K >/dev/null 2>&1 ; then
+      if true ; then
         log_daemon_msg "Shutting down the UPS ..."

Apparently the author doesn't entirely trust upsmon -K or something,
since the preceeding line has already found the kill file; all upsmon
adds, according to the man page, is a check of the text in it. 
Harmless when it works...




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to