Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43718 - script error in /etc/apcupsd/apccontrol
Summary: script error in /etc/apcupsd/apccontrol
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-04 07:59 UTC by Frank Eichentopf
Modified: 2004-03-12 06:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Eichentopf 2004-03-04 07:59:31 UTC
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
Comment 1 Michael Imhof (RETIRED) gentoo-dev 2004-03-07 02:25:11 UTC
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?
Comment 2 Frank Eichentopf 2004-03-11 01:12:20 UTC
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.
Comment 3 Michael Imhof (RETIRED) gentoo-dev 2004-03-11 02:55:20 UTC
Great.
Thanks for your feedback.
Comment 4 Allan Que 2004-03-11 21:07:17 UTC
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
Comment 5 Michael Imhof (RETIRED) gentoo-dev 2004-03-12 05:02:46 UTC
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.
Comment 6 Frank Eichentopf 2004-03-12 06:31:36 UTC
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.
Comment 7 Michael Imhof (RETIRED) gentoo-dev 2004-03-12 06:43:28 UTC
Great, so i will bump to .11 within the next days.
Comment 8 Frank Eichentopf 2004-03-12 06:52:35 UTC
info: latest Release is apcupsd-3.10.12