#799849 NUT turns off the UPS when shutting down or rebooting the computer

Package:
nut
Source:
nut
Submitter:
Antti Niemi
Date:
2025-07-09 09:27:05 UTC
Severity:
normal
Tags:
#799849#5
Date:
2015-09-23 09:36:15 UTC
From:
To:
By default, NUT turns the UPS off when shutting down the system. This is
apparently caused by the file /lib/systemd/system-shutdown/nutshutdown.
Commenting out this file solves the problem, but I think this behavior
shouldn't be enabled by default, for the following reasons:

#799849#10
Date:
2017-01-28 21:11:57 UTC
From:
To:
On Wed, 23 Sep 2015 12:36:15 +0300 Antti Niemi <antti.niemi@gmail.com>  wrote:

Hi,

 > By default, NUT turns the UPS off when shutting down the system. This is
 > apparently caused by the file /lib/systemd/system-shutdown/nutshutdown.
 > Commenting out this file solves the problem, but I think this behavior
 > shouldn't be enabled by default, for the following reasons:
 >
 > -It turns off the UPS even when rebooting - so the reboot fails.
 >
 > -Many users have other devices connected to the UPS and it's not always
 > desired to turn them all off.

The UPS should only be shutdown only in case of power loss. Is it
happening to you at every reboot/shutdown?

Could you check if the /etc/killpower exits on your machine, if it's the
case could you try to delete it?

The fact that the UPS is shutdown _in case of powerloss_ is expected and
I don't think it's a good idea to change this. If you want to change
this, you can comment the POWERDOWNFLAG option in the
/etc/nut/upsmon.conf file.

Regards,

Laurent Bigonville

#799849#15
Date:
2017-04-22 20:30:54 UTC
From:
To:
Hi Laurent,

I recently encountered and addressed/worked around this problem.  So I cn
provide some additional information that will hopefully enable you to
actually fix it.

Yes.

/etc/killpower does not exist

The behaviour documented by this bug occurs under systemd but not under
sysvinit.  Also, changing mode from "none" to "standalone" in nut.conf made
this problem disappear for me.

I hope that helps,

James

#799849#26
Date:
2025-07-09 09:12:39 UTC
From:
To:
close 799849 2.8.3-2
thanks

Hello,

This should be fixed with the 2.8.3-2 upload

The problem was a debian specific wrapper around upsd and upsmon, these
wrappers have now been removed.

Changing the MODE to something else than "none" is indeed the thing to do.

Kind regards,
Laurent Bigonville