<div dir="ltr">Dear Charles and Roger,<div><br></div><div>thank you for your help, once again I tried to google around but forgot to check launchpad's bugs. Indeed that was it and creating the script as mentioned in the second bug made it work: box was powered down, UPS was then shut down and it came back up along with the box a few secs later. Really smooth, thank you so much for such great piece of software.</div><div><br></div><div>And yes, I have a launchpad account and have marked the bugs as effecting me.</div><div><br></div><div>Happy holidays to everybody,</div><div><br></div><div>Spike</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 24, 2016 at 6:00 AM Charles Lepple <<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="gmail_msg">
> On Dec 24, 2016, at 3:14 AM, Roger Price <<a href="mailto:roger@rogerprice.org" class="gmail_msg" target="_blank">roger@rogerprice.org</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> On Sat, 24 Dec 2016, Spike wrote:<br class="gmail_msg">
><br class="gmail_msg">
>> ... from reading the docs it seems the UPS should power off, is that the case?<br class="gmail_msg">
><br class="gmail_msg">
> 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.<br class="gmail_msg">
><br class="gmail_msg">
>> 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).<br class="gmail_msg">
><br class="gmail_msg">
> It looks as if the command upsdrvctl shutdown is not being executed. Does the Ubuntu distribution of NUT include a script to do this?<br class="gmail_msg">
<br class="gmail_msg">
Roger,<br class="gmail_msg">
<br class="gmail_msg">
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.<br class="gmail_msg">
<br class="gmail_msg">
Some relevant bugs:<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1512603" rel="noreferrer" class="gmail_msg" target="_blank">https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1512603</a><br class="gmail_msg">
<br class="gmail_msg">
<a href="https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1603609" rel="noreferrer" class="gmail_msg" target="_blank">https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1603609</a> (includes workaround)<br class="gmail_msg">
<br class="gmail_msg">
Spike,<br class="gmail_msg">
<br class="gmail_msg">
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.<br class="gmail_msg">
<br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> Nut-upsuser mailing list<br class="gmail_msg">
> <a href="mailto:Nut-upsuser@lists.alioth.debian.org" class="gmail_msg" target="_blank">Nut-upsuser@lists.alioth.debian.org</a><br class="gmail_msg">
> <a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a><br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>