mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-12 22:55:06 +00:00
Changed "Running (pid)" to "Server Running on (pid)"
This commit is contained in:
parent
d2c8c8d3cd
commit
3a8e7ffb93
1 changed files with 2 additions and 2 deletions
|
@ -554,7 +554,7 @@ CommandHandler.RegisterCommand("restartserver", args =>
|
|||
consoleLogger.Info("Received restartserver command");
|
||||
restartRequested = true;
|
||||
cts.Cancel();
|
||||
return "restarting...";
|
||||
return "Restarting...";
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -589,7 +589,7 @@ if (restartRequested) //need to do this here because this needs to happen after
|
|||
const string unableToStartMsg = "Unable to ascertain the executable location, you'll need to re-run the server manually.";
|
||||
if (path != null) //path is probably just "Server", but in the context of the assembly, that's all you need to restart it.
|
||||
{
|
||||
Console.WriteLine($"Running (pid): {System.Diagnostics.Process.Start(path)?.Id.ToString() ?? unableToStartMsg}");
|
||||
Console.WriteLine($"Server Running on (pid): {System.Diagnostics.Process.Start(path)?.Id.ToString() ?? unableToStartMsg}");
|
||||
}
|
||||
else
|
||||
consoleLogger.Info(unableToStartMsg);
|
||||
|
|
Loading…
Reference in a new issue