mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Graft the REST console onto the grid server. Same procedure as with
the user server.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
*/
|
||||
|
||||
using log4net.Config;
|
||||
using Nini.Config;
|
||||
|
||||
namespace OpenSim.Grid.GridServer
|
||||
{
|
||||
@@ -33,10 +34,21 @@ namespace OpenSim.Grid.GridServer
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
ArgvConfigSource argvSource = new ArgvConfigSource(args);
|
||||
argvSource.AddSwitch("Startup", "console", "c");
|
||||
|
||||
XmlConfigurator.Configure();
|
||||
|
||||
GridServerBase app = new GridServerBase();
|
||||
|
||||
IConfig startupConfig = argvSource.Configs["Startup"];
|
||||
if (startupConfig != null)
|
||||
{
|
||||
app.m_consoleType = startupConfig.GetString("console", "local");
|
||||
}
|
||||
|
||||
app.m_configSource = argvSource;
|
||||
|
||||
// if (args.Length > 0 && args[0] == "-setuponly")
|
||||
// {
|
||||
// app.Config();
|
||||
|
||||
Reference in New Issue
Block a user