Dear all, first post here and wanted to start by thanking everybody who made this possible. I've been reading the docs and setting up NUT from packages on ubuntu xenial. I have nut[-client,-server] installed, version 2.7.2-4ubuntu1. My UPS is an Eaton 5S 1500, which I picked from the list of supported devices. I've got it working and I can correctly query/monitor the UPS via USB etc. Following the docs I attempted to test a shutdown process (upsmon -c fsd) and this is where my question lies: from reading the docs it seems the UPS should power off, is that the case? The box correctly shuts down, but the UPS does not and, maybe as a consequence, the box never came back on its own (I waited a few minutes). Can anybody shed some light on what I should see as I force the shutdown sequence? Do you need me to provide more data? thanks all in advance, Spike -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20161224/a58597f3/attachment.html>
On Sat, 24 Dec 2016, Spike wrote:> ... from reading the docs it seems the UPS should power off, is that the > case?Yes, The UPS should be sent a "delayed shutdown" command, upsdrvctl shutdown, to tell it to shut down _after_ the box. The amount of the delay can be set in ups.conf. The UPS delayed shutdown turns off the output sockets on the UPS. On some UPS's this gives an audible clunk.> The box correctly shuts down, but the UPS does not and, maybe as a > consequence, the box never came back on its own (I waited a few > minutes).It looks as if the command upsdrvctl shutdown is not being executed. Does the Ubuntu distribution of NUT include a script to do this? Roger
Charles Lepple
2016-Dec-24 14:00 UTC
[Nut-upsuser] unclear about expected shutdown behavior
> On Dec 24, 2016, at 3:14 AM, Roger Price <roger at rogerprice.org> wrote: > > On Sat, 24 Dec 2016, Spike wrote: > >> ... from reading the docs it seems the UPS should power off, is that the case? > > Yes, The UPS should be sent a "delayed shutdown" command, upsdrvctl shutdown, to tell it to shut down _after_ the box. The amount of the delay can be set in ups.conf. The UPS delayed shutdown turns off the output sockets on the UPS. On some UPS's this gives an audible clunk. > >> The box correctly shuts down, but the UPS does not and, maybe as a consequence, the box never came back on its own (I waited a few minutes). > > It looks as if the command upsdrvctl shutdown is not being executed. Does the Ubuntu distribution of NUT include a script to do this?Roger, Ubuntu 16.04 ships the SysV init scripts for NUT that worked with previous Ubuntu distributions, but it does not appear that the "powerdown" target gets invoked anymore after the switch to systemd. Some relevant bugs: https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1512603 https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1603609 (includes workaround) Spike, List subscription information is below. Please let us know if the workaround mentioned in the second bug fixes things for you. If you have a launchpad account, you can also mark the bug as affecting you.> _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser