[Nut-upsuser] CentOS 7, systemd, nut-monitor, and failing to shut down the UPS
clepple at gmail.com
Fri Feb 2 14:00:28 UTC 2018
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?
"upsdrvctl shutdown" does not talk to the running driver - it starts a new copy with the "-k" flag to kill power.
More information about the Nut-upsuser