UPS Shutdown occurs when Power Off UPS is not set

Description

Unchecking the "Power Off UPS" value in UPS Service still results in a UPS getting shutdown.

modifying this value updates /etc/nut/upsmon.conf appropriately:

POWERDOWNFLAG /etc/nokillpower

vs

POWERDOWNFLAG /etc/killpower.

But the shutdown command located at /usr/lib/systemd/system-shutdown/nutshutdown does not check this value and issues a /sbin/upsdrvctl shutdown command regardless.

This shutdown script should check for the existence of the /etc/killpower flag to determine if it should run that command, one possible fix would be:
if [ -f " /etc/killpower " ] ; then /sbin/upsdrvctl shutdown ; fi

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk April 12, 2022 at 6:11 PM

Bug Clerk April 11, 2022 at 8:34 PM

Waqar March 6, 2022 at 10:43 AM

this is an upstream issue and it needs to be filed upstream so that they can fix this in the debian package upstream provides. Created a new issue upstream https://github.com/networkupstools/nut/issues/1324

iX-Tony February 25, 2022 at 8:53 PM

Thanks for your submission! This is in our queue to review now. An engineering representative will update with any further questions or details in the near future.

Brian Boundy February 25, 2022 at 7:58 PM

Debug added.

Complete

Details

Assignee

Reporter

Labels

Impact

Low

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created February 25, 2022 at 7:21 PM
Updated July 1, 2022 at 5:59 PM
Resolved April 26, 2022 at 4:33 PM