aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/Main.cs
diff options
context:
space:
mode:
authorBrian McBee2007-08-03 18:01:55 +0000
committerBrian McBee2007-08-03 18:01:55 +0000
commit599a6d32eebc451f9284db8e6abf2946f236d5e9 (patch)
tree60ca29aaa58b0cf34b5f0514c95229602036895c /OpenSim/Grid/GridServer/Main.cs
parentYet another commit related to the SceneObject rewrites. (diff)
downloadopensim-SC-599a6d32eebc451f9284db8e6abf2946f236d5e9.zip
opensim-SC-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.gz
opensim-SC-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.bz2
opensim-SC-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.xz
Changes to prepare for future possible configuration of separate logdir, configdir, datadir.
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/GridServer/Main.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Grid/GridServer/Main.cs b/OpenSim/Grid/GridServer/Main.cs
index f9accab..ecf3b9d 100644
--- a/OpenSim/Grid/GridServer/Main.cs
+++ b/OpenSim/Grid/GridServer/Main.cs
@@ -27,6 +27,7 @@
27*/ 27*/
28 28
29using System; 29using System;
30using System.IO;
30using System.Reflection; 31using System.Reflection;
31using System.Threading; 32using System.Threading;
32using System.Timers; 33using System.Timers;
@@ -34,6 +35,7 @@ using OpenSim.Framework.Console;
34using OpenSim.Framework.Interfaces; 35using OpenSim.Framework.Interfaces;
35using OpenSim.Framework.Servers; 36using OpenSim.Framework.Servers;
36using OpenSim.Framework.Configuration; 37using OpenSim.Framework.Configuration;
38using OpenSim.Framework.Utilities;
37 39
38using Timer=System.Timers.Timer; 40using Timer=System.Timers.Timer;
39 41
@@ -84,7 +86,11 @@ namespace OpenSim.Grid.GridServer
84 86
85 private OpenGrid_Main() 87 private OpenGrid_Main()
86 { 88 {
87 m_console = new LogBase("opengrid-gridserver-console.log", "OpenGrid", this, false); 89 if (!Directory.Exists(Util.logDir()))
90 {
91 Directory.CreateDirectory(Util.logDir());
92 }
93 m_console = new LogBase((Path.Combine(Util.logDir(),"opengrid-gridserver-console.log")), "OpenGrid", this, false);
88 MainLog.Instance = m_console; 94 MainLog.Instance = m_console;
89 95
90 96
@@ -104,7 +110,7 @@ namespace OpenSim.Grid.GridServer
104 public void Startup() 110 public void Startup()
105 { 111 {
106 112
107 this.Cfg = new GridConfig("GRID SERVER","GridServer_Config.xml"); //Yeah srsly, that's it. 113 this.Cfg = new GridConfig("GRID SERVER",(Path.Combine(Util.configDir(),"GridServer_Config.xml"))); //Yeah srsly, that's it.
108 if (setuponly) Environment.Exit(0); 114 if (setuponly) Environment.Exit(0);
109 115
110 m_console.Verbose( "Main.cs:Startup() - Connecting to Storage Server"); 116 m_console.Verbose( "Main.cs:Startup() - Connecting to Storage Server");