I run a Minecraft server and I have an issue when the power goes out and the UPS is getting low on battery power, it sends its shutdown command (as expected) to Windows but Windows shuts down without giving the Minecraft server time to close via a script. I've tried using shutdown scripts to shut down the server, which works with no issues by itself, buy when Windows shuts down it seems to ignore the script or not give the script adequate time to complete (tried using task scheduler and gpedit.msc for the script). If there's a way or workaround to delay a shutdown and give the script adequate time to run in Windows that i'm not aware of or with 3rd party software please let me know, thanks!

(Unfortunately, my ups doesn't support running scripts natively)

0

There are 0 best solutions below