mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Server Monitor Changes
- added sequential checkbox and slider (not implemented up yet) - added separate mod only update option. - added a cancel process option. - a lot of changes with the process methods - consoladated stop/shutdown and start/restart. - removed the server accessable flag, will now just keep counting down if server unable to be contacted. - added a retry to the RCON command sending - set to 3, with a 10 sec delay.
This commit is contained in:
parent
f42da44940
commit
1d6907a471
22 changed files with 966 additions and 848 deletions
|
|
@ -226,7 +226,7 @@ namespace ServerManagerTool
|
|||
var app = new ServerApp(true)
|
||||
{
|
||||
CheckForOnlinePlayers = this.CheckForOnlinePlayers,
|
||||
SendMessages = this.SendShutdownMessages,
|
||||
SendShutdownMessages = this.SendShutdownMessages,
|
||||
BackupWorldFile = this.BackupWorldFile,
|
||||
ShutdownInterval = this.ShutdownInterval,
|
||||
ShutdownReason = this.ShutdownReason,
|
||||
|
|
@ -255,7 +255,7 @@ namespace ServerManagerTool
|
|||
|
||||
_shutdownCancellationSource = new CancellationTokenSource();
|
||||
|
||||
var exitCode = await Task.Run(() => app.PerformProfileShutdown(profile, restartServer, updateServer, false, CommonConfig.Default.SteamCmdRemoveQuit, _shutdownCancellationSource.Token));
|
||||
var exitCode = await Task.Run(() => app.PerformProfileShutdown(profile, restartServer, updateServer ? ServerUpdateType.ServerAndMods : ServerUpdateType.None, false, CommonConfig.Default.SteamCmdRemoveQuit, _shutdownCancellationSource.Token));
|
||||
if (exitCode != ServerApp.EXITCODE_NORMALEXIT && exitCode != ServerApp.EXITCODE_CANCELLED)
|
||||
throw new ApplicationException($"An error occured during the shutdown process - ExitCode: {exitCode}");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue