aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/Program.cs
diff options
context:
space:
mode:
authorDiva Canto2009-08-19 00:31:51 -0700
committerDiva Canto2009-08-19 00:31:51 -0700
commit4818d11b9d3f9839a041ade0d0d3c6fd9848026e (patch)
treebb728cdc54bc0bd4dd5c931297a8a6c48357bc7a /OpenSim/Grid/GridServer/Program.cs
parentA better purge of trash folder. (diff)
parentGraft the REST console onto the message server as well. What a dirty hack! (diff)
downloadopensim-SC-4818d11b9d3f9839a041ade0d0d3c6fd9848026e.zip
opensim-SC-4818d11b9d3f9839a041ade0d0d3c6fd9848026e.tar.gz
opensim-SC-4818d11b9d3f9839a041ade0d0d3c6fd9848026e.tar.bz2
opensim-SC-4818d11b9d3f9839a041ade0d0d3c6fd9848026e.tar.xz
Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/GridServer/Program.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Grid/GridServer/Program.cs b/OpenSim/Grid/GridServer/Program.cs
index 9618b85..c7ba897 100644
--- a/OpenSim/Grid/GridServer/Program.cs
+++ b/OpenSim/Grid/GridServer/Program.cs
@@ -26,6 +26,7 @@
26 */ 26 */
27 27
28using log4net.Config; 28using log4net.Config;
29using Nini.Config;
29 30
30namespace OpenSim.Grid.GridServer 31namespace OpenSim.Grid.GridServer
31{ 32{
@@ -33,10 +34,21 @@ namespace OpenSim.Grid.GridServer
33 { 34 {
34 public static void Main(string[] args) 35 public static void Main(string[] args)
35 { 36 {
37 ArgvConfigSource argvSource = new ArgvConfigSource(args);
38 argvSource.AddSwitch("Startup", "console", "c");
39
36 XmlConfigurator.Configure(); 40 XmlConfigurator.Configure();
37 41
38 GridServerBase app = new GridServerBase(); 42 GridServerBase app = new GridServerBase();
39 43
44 IConfig startupConfig = argvSource.Configs["Startup"];
45 if (startupConfig != null)
46 {
47 app.m_consoleType = startupConfig.GetString("console", "local");
48 }
49
50 app.m_configSource = argvSource;
51
40// if (args.Length > 0 && args[0] == "-setuponly") 52// if (args.Length > 0 && args[0] == "-setuponly")
41// { 53// {
42// app.Config(); 54// app.Config();