> Public bug reported:
>
> 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
>
upsmon forks 2 instances:
- 1 running unprivileged (ie "nut" user), listening on the network interface
- 1 running with "root" privileges to be able to launch
upsmon.conf->SHUTDOWNCMD
have a 2nd look at your processes list.
> 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)
>
I'll have to have another look, but I recently made a full test with 2.6.1
and everything was fine.
I need more info on your setup, ie:
- your .conf files (trimmed of passwords and sensitive info)
- your ups name and type
Moreover, have you checked your BIOS for the power setting (ie "power on
after a power failure" or whatever its name is)?
Hi Dmitriy,
2011/9/2 Dmitriy Altuhov <email address hidden>
> Public bug reported:
>
> 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
>
upsmon forks 2 instances: conf->SHUTDOWNC MD
- 1 running unprivileged (ie "nut" user), listening on the network interface
- 1 running with "root" privileges to be able to launch
upsmon.
have a 2nd look at your processes list.
> Example: d/ups-monitor poweroff d/ups-monitor poweroff executes upsmon -K to check
> 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.
> 5) /etc/init.
> /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)
>
I'll have to have another look, but I recently made a full test with 2.6.1
and everything was fine.
I need more info on your setup, ie:
- your .conf files (trimmed of passwords and sensitive info)
- your ups name and type
Moreover, have you checked your BIOS for the power setting (ie "power on
after a power failure" or whatever its name is)?
cheers, powerquality. eaton.com www.networkupst ools.org/ www.debian. org arnaud. quette. free.fr/
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://
Network UPS Tools (NUT) Project Leader - http://
Debian Developer - http://
Free Software Developer - http://