Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Server / Promox VE / TrueNAS UPS power supply autocheck and auto shutdown server while power is down.

This script can be used to auto-shutdown Debian/Ubuntu Server while UPS power supply is down. Not all UPS have communication interface to shutdown the server. But we can use scripts to detect if Network router/gateway is available or not and thus use this information to shutdown server gracefully.

usage

Ubuntu

git clone https://github.com/peyoot/ups_power_detect.git
cd ups_power_detect
sudo chmod +x ./install.sh
sudo ./install.sh

Debian |PVE |Truenas

git clone https://github.com/peyoot/ups_power_detect.git
cd ups_power_detect
su -
chmod +x ./install.sh
./install.sh

check if the timer/service is already running by:

systemctl list-timers

About

No description, website, or topics provided.

Resources

Stars

19 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages