[Nut-upsuser] Windows NUT shutdown UPS?

Kris Jordan nut.kj at sagebrushnetworks.com
Fri Jul 27 21:11:04 UTC 2012


Kris Jordan wrote, On 7/27/2012 9:39 AM:
>
> FredericBohe at Eaton.com wrote, On 7/27/2012 12:15 AM:
>>> On Windows 7 x64 (I haven't tested XP), upsdrvctl shutdown doesn't
>>> appear to get called during automatic OS shutdown by NUT. I used upsmon
>>> -c fsd to test. upsdrvctrl shutdown works if I run it manually.
>> Last time I tested this, upsdrvctl was correclty called at OS 
>> shutdown time. Maybe a regression or an issue with Win7. I will a 
>> have to investigate.
>
> Okay, that's good. That is what I was hoping it would at least do. 
> I'll do some more tests to make sure I don't have something else going 
> on.

Not working in XP (as a VM) either. I might be doing something wrong.

upsdrvctl stop

Network UPS Tools - UPS driver controller 2.6.4-3534:3579M
Stopping UPS: ups
Sending signal to C:\Program Files\NUT\bin\..\var\run/usbhid-ups-ups.pid
Stopping C:\Program Files\NUT\bin\..\var\run/usbhid-ups-ups.pid
failed: No error [The parameter is incorrect. ]

I get the same message on Win7.

If I run upsdrvctrl start myself, I can upsdrvctl stop then shutdown 
without issues.

upsmon.pid doesn't get removed after stopping the nut service. 
upsd.exe.pid does get removed and it has 'exe' in its filename.




More information about the Nut-upsuser mailing list