<p dir="ltr"><br>
Op 21 jun. 2013 05:02 schreef "Charles Lepple" <<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>> het volgende:<br>
><br>
> On Jun 20, 2013, at 10:35 AM, Louis Chaillet wrote:<br>
><br>
>> With respect clarification of the documentation (and reference to your question Charles). The documentation does suggest that you can shutdown the ups by the upsdrvclt shutdown [ups] command. Specifically in "<a href="http://www.networkupstools.org/docs/man/upsdrvctl.html">http://www.networkupstools.org/docs/man/upsdrvctl.html</a>" in the section commands under warning. In the "Network UPS Tools User Manual" (pdf) under section 6.3.2 in the last paragraph it is suggested to first test the /usr/local/ups/bin/upsdrvctl -t shutdown and then "upsmon -c fsd". Also this section suggests that under some circumstances you cannot rely on the shutdown sequence to issue this command.<br>

><br>
><br>
> Thanks, noted.<br>
><br>
>> However the real reason I tried "upsdrctl -c shutdown" (not the test) is that I  already tested the setup with the "upsmon -c fsd". The results is that the server closes down, as expected, but ups does not shutdown, and so there is no restart of the server.<br>

>><br>
>> I was guessing it has to do with the particular shutdown command of the server I have, which was "SHUTDOWNCMD "/usr/lib/web-admin/<a href="http://backend.pl">backend.pl</a> power_off"". And I was trying to fix that by calling the upsdrvctl shutdown command directly from a script. <br>

>><br>
>> As I do not use the packaged (debian) shutdown script (/sbin/shutdown) do I need to tell the ups to power down myself, as   suggested in  the documentation (configuration notes, see reference above)?<br>
><br>
><br>
> I haven't traced through the Debian shutdown sequence recently, but I think that they call "upsdrvctl shutdown" after the rest of the system processes have shut down (including the NUT driver). That should avoid the "device or resource busy" error - only one process can open the UPS USB device node at a time.<br>

></p>
<p dir="ltr">Thanks for all your help, regards Louis</p>
<p dir="ltr">> -- <br>
> Charles Lepple<br>
><br>
> A: Because it messes up the order in which people normally read text.<br>
> Q: Why is top-posting such a bad thing?<br>
> A: Top-posting.<br>
> Q: What is the most annoying thing on usenet and in e-mail?<br>
><br>
</p>