aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/Program.cs
diff options
context:
space:
mode:
authorMelanie2009-08-19 05:15:25 +0100
committerMelanie2009-08-19 05:15:25 +0100
commitdd0234f5005127c03760c2b9862ed1672f4a2e91 (patch)
treeceb6e9b1c182618063cf0cab5d1e10378eade99b /OpenSim/Grid/GridServer/Program.cs
parentMerge branch 'master' of ssh://melanie@opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-dd0234f5005127c03760c2b9862ed1672f4a2e91.zip
opensim-SC_OLD-dd0234f5005127c03760c2b9862ed1672f4a2e91.tar.gz
opensim-SC_OLD-dd0234f5005127c03760c2b9862ed1672f4a2e91.tar.bz2
opensim-SC_OLD-dd0234f5005127c03760c2b9862ed1672f4a2e91.tar.xz
Graft the REST console onto the grid server. Same procedure as with
the user server.
Diffstat (limited to 'OpenSim/Grid/GridServer/Program.cs')
-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();