Citeren Robert Jobbagy <[email protected]>:

I use nut rev2462 and I put shutdown commands in end of upsdrv_updateinfo
before these calls

status_commit();

 dstate_dataok();

Well, in that case you've proven that the shutdown commands are working. The upsdrv_updateinfo() is called every pollinterval seconds (typically 2), so this will pretty much instantly kill the UPS when you start the driver. If you want to do something useful with this command, they should go into upsdrv_shutdown() and/or instcmd().

I test manual shutdown commands , If I run upsc
liebert-e...@localhostcommand then call upsdrv_updateinfo if I think
it right ?

Not at all. Please do read the developer documentation (all of it) before making a fool of yourself. Most of this is documented in docs/new-drivers.txt, so I strongly suggest you start reading there (but please read *all* documentation before asking for help). It also helps looking at other drivers to see how they deal with shutdown commands. I'm really getting quite annoyed by your ignorance to try to figure out this yourself. I have much better things to do than explain what is already documented.

This is the all modify in this driver.

It helps attaching a diff.

Best regards, Arjen
--
Please keep list traffic on the list


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to