Hi Guys,<div><br></div><div>I attached my shutdown patch.</div><div>I tested and works fine but please someone needs test.</div><div><br></div><div>You need make a shutdown script and put in it these things:</div><div><br>
</div><div><div>if (test -f /etc/killpower)</div><div>then</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/ups/bin/upsdrvctl shutdown <- it calls the shutdown function of liebert-esp2 driver</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/sbin/shutdown -h +0</div><div>fi</div></div><div><br></div><div>Please put in devel tree, thanks.<br><br><div class="gmail_quote">2010/8/3 Robert Jobbagy <span dir="ltr"><<a href="mailto:jobbagy.robert@gmail.com">jobbagy.robert@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Sorry, I realized my mistakes and I fixed them but I forgetted wrote to mail-list.<div>It was some dummy mistakes from me.</div>
<div><br></div><div>I tested my shutdown function and it works fine.</div><div>I will make some test today and after I will send the patch.</div>
<div><br></div><div>Sorry the some useless mails in past</div><div><br></div><div><br><br><div class="gmail_quote">2010/8/2 Arjen de Korte <span dir="ltr"><<a href="mailto:nut%2Bdevel@de-korte.org" target="_blank">nut+devel@de-korte.org</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Citeren Robert Jobbagy <<a href="mailto:jobbagy.robert@gmail.com" target="_blank">jobbagy.robert@gmail.com</a>>:<br>
<br>
</div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I fixed my shutdown function:<br>
</blockquote>
<br></div>
Why you just don't look into other drivers how to use the upslog* and upsdebug* functions, is beyond me... :-(<br>
<br>
[...]<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I ran a test and doesnt exist the /tmp/liebert-esp2_debug.log file so I<br>
think shutdown function not called but I don't know why ....<br>
<br>
any idea ?<br>
</blockquote>
<br></div>
Read 'man 8 nutupsdrv' to see if this gives you a hint when the upsdrv_shutdown function is called.<br>
<br>
Other than that, you're not providing an awful lot of information. Again. We can't help you, if you don't meticulously describe what actions you performed and what the intended and actual results where. We're not magicians...<div>
<div></div><div><br>
<br>
Best regards, Arjen<br>
-- <br>
Please keep list traffic on the list<br>
<br>
<br>
_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@lists.alioth.debian.org" target="_blank">Nut-upsdev@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev</a><br>
</div></div></blockquote></div></div></div><br><br clear="all"><br>-- <br>Best Regards,<br><br>Robert <br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><br>Robert <br>
</div>