Comment 0 for bug 839490

Revision history for this message
Dmitriy Altuhov (altuhovsu) wrote :

Description: Ubuntu 11.04
Release: 11.04
nut version 2.6.0-1ubuntu3

Problem:
upsmon working under nut user (not root). nut user can't create file /etc/killpower

Example:
1) Mains out. UPS on battery
2) Battery low. set FSD
3) upsmon executes shutdowncmd but fails to create /etc/killpower
4) /etc/init.d/halt executes /etc/init.d/ups-monitor poweroff
5) /etc/init.d/ups-monitor poweroff executes upsmon -K to check /etc/killpower (but file does not exist)
6) not sending shutdown command to UPS (upsdrvctl shutdown is not executed)
7) system halted, but UPS stays on battery
8) mains come back, ups going on mains, but load is not switched off/on
9) PC stay OFF (need manual start)