Auto-shutdown Bash Script (Opinions Sought)


Aug 21, 2021

First post here. I created a quick Bash script to shutdown a Proxmox VE instance when mains power is lost and the battery falls below a certain percentage. It also (optionally) sends out an alert via Email or Pushover.

Link to my Blog article about it is here where I give a brief explanation of why I would choose to run Proxmox on a laptop (other than me being nuts.)

If you'd rather not visit some rando's blog, the Github Gist can be found here

This is just a proof-of-concept at the moment and would appreciate ideas to improve on it from the community.


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!