@g2_ufo Welcome to the Rockstor community by the way. Yes this would be a nice feature and funnily enough was the reason the NUT folks added their scheduler (which Rockstor uses). The NUT implementation you see in Rockstor is actually in it’s first release and we are relying on user feedback such as yours to guide what elements of NUT we cater for in the GUI, as there is a desire to keep things as accessible / simple as possible whilst also serving the greatest majority of users.
I agree that the option to shutdown regardless of battery state after a set period of time is an important feature / GUI config option and have created an issue “NUT timed shutdown option” under which progress on this feature might be catalogued. Currently we don’t expose this feature to the GUI but there is a pre-configured but remarked out entry to enable this.
For the time being to shutdown after a set number of seconds of the UPS being “On Battery” one can uncomment the following 2 lines beginning with “AT” in /opt/rockstor/conf/upssched.conf
# remark out these 2 lines to shutdown after # seconds on battery
#AT ONBATT * START-TIMER early-shutdown 120
#AT ONLINE * CANCEL-TIMER early-shutdown
For changes in this file to take effect one will need to re-submit your nut config via the GUI.
120 seconds may be rather short so you might want to change that to your preference.
Please also refer to the Wiki post explaining Rockstor’s NUT implimentation where the above procedure is also documented under the “Shutdown after a set period on battery” section and is listed under “Future enhancements”.
To avoid possible confusion the NUT-UPS system is part of the Rockstor “Services” system and is not part of the docker based “Rock-ons” system. Just in case this leads to confusion re how it was implemented. I hope that you don’t mind that I have edited your forum post title and section tag to reflect this. Please re-edit if you think I have edited in error. This way others interested in this feature can chip in or make further suggestions, and are hopefully more likely to find the post in the first place.