Bugzilla – Bug 1222255
apcupsd killpower requested in non-power fail condition
Last modified: 2024-05-09 07:08:16 UTC
When manually hibernate the system, the following error is logged: apcupsd: Cannot find /etc/apcupsd/powerfail file. Killpower requested in non-power fail condition or bug. Killpower request ignored at device.c:95 systemd-sleep: apcupsd FATAL ERROR in device.c at line 96 systemd-sleep: Cannot find /etc/apcupsd/powerfail file. systemd-sleep: Killpower requested in non-power fail condition or bug. systemd-sleep: Killpower request ignored at device.c:96 apcupsd: apcupsd FATAL ERROR in device.c at line 96 Cannot find /etc/apcupsd/powerfail file. Killpower requested in non-power fail condition or bug. Killpower request ignored at device.c:96 apcupsd: apcupsd error shutdown completed There should be no need to turn off the UPS when there is no power outage. Maybe add an additional check (&& [ -f /etc/apcupsd/powerfail ]) before calling apccontrol killpower in /usr/lib/systemd/system-sleep/apcupsd.sh is enough.