![]() Here are more examples on stuff in nf Networked NUT for Cyberpower UPS - Plugins and Apps - Unraid # Command pipe and lock-file To use upssched, in nf I can have NOTIFYCMD /usr/sbin/upsschedĪnd in nf to shutdown after 2 min CMDSCRIPT /etc/nut/upssched-cmd So I can do as above, and that is called “ The simple approach, using your own script”Īnd also with upssched like under, that is called “ The advanced approach, using upssched” OK, been reading at 7. Advanced usage and scheduling notes Have any of you done something similar with NUT, and what is the right way to do it? Surely there must already be a ready-made solution for this in NUT somewhere, but I have just searched with wrong words i Google. I will now shut down"Įcho "Have not seen OB for 1 min, so quiting the script"īut now I am starting to wonder if I am overdoing this. No_counter=$((no_counter + poll_interval))Įcho "Still outoput OB = On Battery, after 2 min. ![]() I do not know much about NUT, but after some Googling, one idea I have is to in /etc/nut/nf on client change to this NOTIFYCMD "/etc/nut/shutdown_script.sh"Īnd then in /etc/nut/shutdown_script.sh have something like this #!/bin/bash So 2 minutes sound much more safe for paranoid me. “SHUTDOWNCMD “/sbin/shutdown -h +0” this command will be triggered if UPS sends the BL (Battery Low) flag.”īut I would like to be on the safest side, and not hope “low battery” is enough time to shut down. Like in - Detailed NUT Configuration where it says Internet has told me that SHUTDOWNCMD “/sbin/shutdown -h +0” in /etc/nut/nf will execute when the UPS is both OB (on battery) and LB (Low battery). Some systems I have take some time to shut down, so I would like them to shut down if the UPS have been on battery for 2 minutes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |