Summary: | unable to completely power off using apcupsd with normal inint.d scripts | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Francisco Ares <frares> |
Component: | Current packages | Assignee: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | gentoo.org |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Francisco Ares
2005-11-14 06:24:30 UTC
There is another case related to this: When shutting down my system the halt.sh-script doesn't power off the UPS. I think line 172 in halt.sh (baselayout 1.11.13-r1) should check for /etc/apcupsd/apccontrol instead of /etc/apcupsd/powerfail. I use a APC Back-UPS BF350, Keyword is "x86" Taking over. Michael you let this package rot so much, since I need it, I'm going to take it over and take care. Please don't say I didn't give you enough notice, last year I already asked you this much and now I'm simply tired. Can you please test to see if this is still a problem with current systems? I think it should power off completely by now. This is still happening on 3.14.7 and 3.14.8. I have set up apcupsd in a masater/slave fashion, and all 4 of my gentoo boxes get to the point of a system halt but do not power down. I have an endian firewall that I installed apcupsd on and it powers down completely when instructed to by the master. All 4 of the gentoo boxes shutdown properly when using the shutdown -h now command, as well as when I just press the power button.(In reply to comment #4) > Can you please test to see if this is still a problem with current systems? I > think it should power off completely by now. > I was able to get my machine to power off by changing the following in /etc/init.d/halt.sh seems like a dirty hack but it works: I changed this: if [[ -x ${UPS_CTL} ]] ; then ewarn "Signalling ups driver(s) to kill the load!" ${UPS_POWERDOWN} ewarn "Halt system and wait for the UPS to kill our power" /sbin/halt -id while [ 1 ]; do sleep 60; done fi To this: if [[ -x ${UPS_CTL} ]] ; then ewarn "Signalling ups driver(s) to kill the load!" ${UPS_POWERDOWN} ewarn "Halt system and wait for the UPS to kill our power" #/sbin/halt -id #while [ 1 ]; do sleep 60; done /sbin/shutdown -h now fi |