<div dir="ltr"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Did you see a line in the journal similar to this ?<br> Oct 06 22:49:54 pinta nut-delayed-ups-shutdown[1854]:<br> nut-delayed-ups-shudown.service calling<br> upsdrvctl to shut down UPS unit</blockquote></div><div><br></div><div>Never after I disabled the service. I pasted the whole journal section of the successful shutdown from last email. However I have been thinking about this line in upssched-cmd:</div><div><div><br></div><div> ${sbinPath}upsmon -c fsd</div></div><div><br></div><div>In 'upsmon --help' I read: "- fsd: shutdown all master UPSes (use with caution)". What exactly does this line do?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">What does "mesg" report?</blockquote><div><br></div><div>It says "is n".</div><div><br></div><div>I decided to make a simple test with this script named test:</div><div><div><br></div><div>#!/bin/bash</div><div>MSG0=$'test'</div><div>echo $MSG0 | /usr/bin/wall</div></div><div>echo "abc"</div><div><br></div><div>If I run it as root, there is a notification - both in console and in KDE and "abc" in console. But if I attempt to run the test script it as upsd:</div><div><br></div><div><div>su - upsd -c "./test"</div></div><div><br></div><div><div class="gmail_extra"><div class="gmail_extra">the result is only silence. I checked permissions, it should run:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">-rwxr-xr-x 1 upsd daemon 63 Oct 28 20:02 /etc/ups/test*</div><div>-rwxr-xr-x 1 root tty 27480 Mar 13 2015 /usr/bin/wall*<br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">I also tried to run it with mesg set to 'y' but with same lack of success.</div><div class="gmail_extra"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Its systemd trying to "help" you. OpenSUSE 13.2 includes a delayed UPS shutdown script in /usr/lib/systemd/system-shutdown/nutshutdown . I suggest you comment out the command in that script.</blockquote><div><br></div><div>Done. Now the UPS doesn't turn off. However I will restore it as it seems useful to have it off when and only when the shutdown is evoked by a real power failure but not during normal reboot/shutdown. That seems exactly what I wanted.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Endless repetitions of (Communication lost - Communication re-established): its been reported before in this mailing list for various drivers, and others may know what causes it. I suggest opening a new issue in this mailing list with a specific technical description.</blockquote><div><br></div><div>Will do. Thanks!</div><div><br></div><div><div><div dir="ltr">---<br><div><div>George</div></div></div></div></div>
<br></div></div></div>