Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30716 - sys-apps/apcupsd calls nonexistant script on power failure
Summary: sys-apps/apcupsd calls nonexistant script on power failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-08 18:20 UTC by Scott Taylor (RETIRED)
Modified: 2003-11-02 02:28 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 Scott Taylor (RETIRED) gentoo-dev 2003-10-08 18:20:24 UTC
I was wondering why i never got an email when there was a power outage (but i
did get the wall message and an email for power being returned) -- apcupsd 
appears to be calling "apccontrol powerout" instead of "apccontrol onbattery".


copying /etc/apcupsd/onbattery to /etc/apcupsd/powerout makes it behave as one
would expect. Not sure if they just changed the calls or what, but this is
something i'd expect to have working out of the box.

Reproducible: Always
Steps to Reproduce:
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2003-11-01 10:21:35 UTC
What version was this with?  I kept getting wall messages telling me power
was out and then back on (in a second) with 3.10.5.  I've updated to 3.10.6
(~arch) to see if it fixes the problem.
Comment 2 Scott Taylor (RETIRED) gentoo-dev 2003-11-01 10:32:41 UTC
It was 3.10.5, and the 3.10.6 just got applied on my system, though at first
glance it appears the newly quoted strings on all the scripts is not agreeing
well with qmail (my stand-in for sendmail here). The only message I am receiving
at the moment is from the "powerfail" script which still does not appear
to be part of the distribution. Thats the one I added myself because that
is what got called when my smart-ups 2200 sees the power outage.

I added the following line to my /etc/apcupsd/apccontrol script to help correlate
the real messages that the daemon calls it with, because I too was getting
'wall' messages but not all the emails I was expecting:

echo ${SCRIPTDIR}/${1} ${2} ${3} ${4} >> /var/log/apcupsd.log
Comment 3 Michael Imhof (RETIRED) gentoo-dev 2003-11-02 02:28:13 UTC
Bug closed by version bump to 3.10.6 and adding a symling for the non existing
script. Description is in #32471.

Closing this one now.

Thanks for your help.
Comment 4 Michael Imhof (RETIRED) gentoo-dev 2003-11-02 02:28:43 UTC
s/symling/symlink/