On Feb 2, 2018, at 8:07 AM, Roger Price wrote:
> 
>>      # check to see if we need to actually shutdown the UPS then do it
>>      /usr/sbin/upsmon -K >/dev/null 2>&1 && /usr/sbin/upsdrvctl shutdown
> 
> I don't have NUT + systemd + CentOS/RHEL, but I'm confused by your script. 
> "upsdrvctl" is a front end to your driver.  You are sending a command via 
> upsdrvctl and via your driver _after_ you have stopped the driver?  And it 
> works?

Roger,

"upsdrvctl shutdown" does not talk to the running driver - it starts a new copy 
with the "-k" flag to kill power.

https://github.com/networkupstools/nut/blob/v2.7.4/drivers/upsdrvctl.c#L337
_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to