mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
Make general server stats available on the robust console as well as the simulator console
This means the "show stats" command is now active on the robust console.
This commit is contained in:
@@ -190,16 +190,7 @@ namespace OpenSim.Server.Base
|
||||
}
|
||||
|
||||
RegisterCommonCommands();
|
||||
|
||||
// Register the quit command
|
||||
//
|
||||
MainConsole.Instance.Commands.AddCommand("General", false, "quit",
|
||||
"quit",
|
||||
"Quit the application", HandleQuit);
|
||||
|
||||
MainConsole.Instance.Commands.AddCommand("General", false, "shutdown",
|
||||
"shutdown",
|
||||
"Quit the application", HandleQuit);
|
||||
RegisterCommonComponents(Config);
|
||||
|
||||
// Allow derived classes to perform initialization that
|
||||
// needs to be done after the console has opened
|
||||
@@ -231,11 +222,12 @@ namespace OpenSim.Server.Base
|
||||
return 0;
|
||||
}
|
||||
|
||||
protected virtual void HandleQuit(string module, string[] args)
|
||||
protected override void ShutdownSpecific()
|
||||
{
|
||||
m_Running = false;
|
||||
m_log.Info("[CONSOLE] Quitting");
|
||||
|
||||
base.ShutdownSpecific();
|
||||
}
|
||||
|
||||
protected virtual void ReadConfig()
|
||||
@@ -246,4 +238,4 @@ namespace OpenSim.Server.Base
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user