patrix87 / PowerShellGSM

A Comprehensive PowerShell Tool for Simple Automated Game Server Management.
https://github.com/patrix87/PowerShellGSM/
MIT License
109 stars 19 forks source link

left over LOCKs on system reboot #57

Open BananaAcid opened 5 months ago

BananaAcid commented 5 months ago

Sometimes my server crashes or a windows update got forced through.

I added a scheduler task to remove all .\servers*.LOCK files on system start.

Maybe, this could be added by default (when creating the game scheduler task)

patrix87 commented 3 months ago

Yes, this could prevent some issues. Please open a PR

omayhemo commented 2 months ago

I was flummoxed on why the server wouldn't start. The cmd window just disappears, you should be pipping output to it and leaving it to keypress for exit, so we can see what's going on. I'm not sure I understand why the lock management is so messy, perhaps it's because there support for so many different games?

patrix87 commented 2 months ago

Enable DEBUG mode in the config if you want the window to stay open. The lock system is there to prevent a state where the server hangs or takes a while to start and then another task start and try to run the server again creating a run away that would impact the performance of the other servers.