aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer/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/UserServer/Main.cs
parentYet another commit related to the SceneObject rewrites. (diff)
downloadopensim-SC_OLD-599a6d32eebc451f9284db8e6abf2946f236d5e9.zip
opensim-SC_OLD-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.gz
opensim-SC_OLD-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.bz2
opensim-SC_OLD-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.xz
Changes to prepare for future possible configuration of separate logdir, configdir, datadir.
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/UserServer/Main.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index 32d8da9..04f45b0 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -28,6 +28,7 @@
28 28
29using System; 29using System;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.IO;
31using System.Reflection; 32using System.Reflection;
32using libsecondlife; 33using libsecondlife;
33using OpenSim.Framework.Console; 34using OpenSim.Framework.Console;
@@ -64,7 +65,11 @@ namespace OpenSim.Grid.UserServer
64 65
65 private OpenUser_Main() 66 private OpenUser_Main()
66 { 67 {
67 m_console = new LogBase("opengrid-userserver-console.log", "OpenUser", this , false); 68 if (!Directory.Exists(Util.logDir()))
69 {
70 Directory.CreateDirectory(Util.logDir());
71 }
72 m_console = new LogBase((Path.Combine(Util.logDir(),"opengrid-userserver-console.log")), "OpenUser", this , false);
68 MainLog.Instance = m_console; 73 MainLog.Instance = m_console;
69 } 74 }
70 75
@@ -80,7 +85,7 @@ namespace OpenSim.Grid.UserServer
80 85
81 public void Startup() 86 public void Startup()
82 { 87 {
83 this.Cfg = new UserConfig("USER SERVER", "UserServer_Config.xml"); 88 this.Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml")));
84 89
85 MainLog.Instance.Verbose("Main.cs:Startup() - Establishing data connection"); 90 MainLog.Instance.Verbose("Main.cs:Startup() - Establishing data connection");
86 m_userManager = new UserManager(); 91 m_userManager = new UserManager();