Package: apcupsd
Version: 3.10.17-2

When power is back after the beginning of the shutdown and before  the stopping 
of apcupsd daemon (20 seconds interval for my system), then the UPS never stops 
power and, as a result, the computer never restarts.

I think that apcupsd should be inactive after shutdown has begun 
ie should be stopped in the "doshutdown" of /etc/apcupsd/apccontrol
A shutdown can never be cancelled after it has begun.

I think that the file "/etc/apcupsd/powerfail" should never been removed  by 
apcupsd after shutdown has begun.

Here is a copy of /var/log/apcupsd.events with comments
Mon Oct 16 13:41:33 CEST 2006  Power failure.
Mon Oct 16 13:41:39 CEST 2006  Running on UPS batteries.
Mon Oct 16 13:41:40 CEST 2006  User logins prohibited
Mon Oct 16 13:41:50 CEST 2006  Users requested to logoff.
Mon Oct 16 13:42:40 CEST 2006  Reached run time limit on batteries.
Mon Oct 16 13:42:40 CEST 2006  Initiating system shutdown!
Mon Oct 16 13:42:48 CEST 2006  Mains returned. No longer on UPS batteries.
# At this time the shutdown of services is in progress
Mon Oct 16 13:42:48 CEST 2006  Cancelling shutdown
# It is an error to cancel shutdown at this time
Mon Oct 16 13:42:48 CEST 2006  Power is back. UPS running on mains.
Mon Oct 16 13:42:48 CEST 2006  Allowing logins
# it is an error to allow logins because the services are stopping
Mon Oct 16 13:43:00 CEST 2006  apcupsd exiting, signal 15
Mon Oct 16 13:43:00 CEST 2006  apcupsd shutdown succeeded
# all services are stopped but the file "/etc/apcupsd/powerfail" has been 
removed by apcupsd just after power is back, the command 
"/etc/apcupsd/apccontrol killpower" will not be issued by 
/etc/apcupsd/ups-monitor
# The computer is stopped but the UPS remains "On"

I am using Debian GNU/Linux 3.1 Sarge Stable
I don't know if this problem remains in unstable and testing.



--------------------- ALICE SECURITE ENFANTS ---------------------
Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, le 
contrôle parental d'Alice.
http://www.aliceadsl.fr/securitepc/default_copa.asp



Reply via email to