When running the apcupsd (sys-apps/apcupsd-3.10.10) and the daemon call the script /etc/apcupsd/apccontrol there is a scriot error in line 98. Reproducible: Always Steps to Reproduce: 1. starting a configured apcupsd 2. plug off the powercable from the usv 3. see the error message on the screen remove the line 98 from the script /etc/apcupsd/apccontrol to fix the file
I can't see nothing wrong in line 98: head -n 98 /etc/apcupsd/apccontrol | tail -n 1 echo "Power has returned on UPS ${2}..." | wall Can you please specify which line you mean exactly and paste the error message as well? Does it just give the message or does it stop working?
sorry, i can't reproduce my error anymore. I have emerged this ebuild on another server and the apccontrol is working. i think the bug can closed.
Great. Thanks for your feedback.
Michael, is the problem on line 89 instead: --- /etc/apcupsd/apccontrol.original 2004-03-11 20:46:27.000000000 -0800 +++ /etc/apcupsd/apccontrol 2004-03-11 20:49:26.000000000 -0800 @@ -85,7 +85,6 @@ if [ -f /etc/apcupsd/powerfail ] ; then printf "Continuing with shutdown." | wall fi - ;; ;; failing) echo "Battery power exhaused on UPS ${2}. Doing shutdown." | wall
Could you please report that error upstream to the apcupsd developers? So they can change this upstream, which would be much better than if we fix it, but the upstream package still has that error.
in the upstream it is fixed ----> Release apcupsd-3.10.11 (26 January 2004) - Correct apccontrol script to remove extra ;; that I inadvertantly left the last release -- apparently that prevented proper shutdown.
Great, so i will bump to .11 within the next days.
info: latest Release is apcupsd-3.10.12