userJakbcancel
branchRust.ServerManager/server_restartscancel

11 Commits over 30 Days - 0.02cph!

18 Days Ago
Minor changes
19 Days Ago
Log any errors
19 Days Ago
Attempt to restart multiple times if we failed due to an exception
19 Days Ago
Double time window to ensure we restart and store DateTimeOffset of when restart was last requested
19 Days Ago
rename vars, too
19 Days Ago
Rename CommandManager to more suitable ServerRcon
23 Days Ago
CommandManager takes CancellationToken, not source
23 Days Ago
Was accidentally using DateTime.UtcNow instead of DateTime.Now Change the time check to prevent the extremely rare edgecase of the server attempting to restart twice Use the global cancellation token in the CommandManager, don't make a new one
25 Days Ago
Separate rcon logic and serverinfo loop out of ConsoleInputBar and into separate class CommandManager. Swapped out usages in RunServer.cs. Finished up the CheckForServerRestart functionality. Confirmed the project still builds
25 Days Ago
start the timer 10 minutes after the server is up and repeat every 5 minutes
25 Days Ago
WIP restart server at 4am local machine time, check for >=22 hour server uptime and do not restart Staging servers (env || hostname)