aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorMelanie2012-01-25 00:45:57 +0000
committerMelanie2012-01-25 00:45:57 +0000
commit427ab55058128c3cebd5ebd5e3aed93bc4337a2b (patch)
treee50bf3ef199b3aeb208ce3cabbd242e10e65c8ca /OpenSim/Region/Application
parentMerge branch 'master' into careminster (diff)
parentMake errors reported by OpenSim when it halts because it can't find certain c... (diff)
downloadopensim-SC_OLD-427ab55058128c3cebd5ebd5e3aed93bc4337a2b.zip
opensim-SC_OLD-427ab55058128c3cebd5ebd5e3aed93bc4337a2b.tar.gz
opensim-SC_OLD-427ab55058128c3cebd5ebd5e3aed93bc4337a2b.tar.bz2
opensim-SC_OLD-427ab55058128c3cebd5ebd5e3aed93bc4337a2b.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/Framework/Scenes/SceneGraph.cs
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/ConfigurationLoader.cs19
-rw-r--r--OpenSim/Region/Application/OpenSimBase.cs6
2 files changed, 9 insertions, 16 deletions
diff --git a/OpenSim/Region/Application/ConfigurationLoader.cs b/OpenSim/Region/Application/ConfigurationLoader.cs
index 4a7c8b0..8d95c41 100644
--- a/OpenSim/Region/Application/ConfigurationLoader.cs
+++ b/OpenSim/Region/Application/ConfigurationLoader.cs
@@ -107,15 +107,13 @@ namespace OpenSim
107 } 107 }
108 else 108 else
109 { 109 {
110 m_log.ErrorFormat("Master ini file {0} not found", masterFilePath); 110 m_log.ErrorFormat("Master ini file {0} not found", Path.GetFullPath(masterFilePath));
111 Environment.Exit(1); 111 Environment.Exit(1);
112 } 112 }
113 } 113 }
114 } 114 }
115 115
116 116 string iniFileName = startupConfig.GetString("inifile", "OpenSim.ini");
117 string iniFileName =
118 startupConfig.GetString("inifile", "OpenSim.ini");
119 117
120 if (IsUri(iniFileName)) 118 if (IsUri(iniFileName))
121 { 119 {
@@ -131,8 +129,7 @@ namespace OpenSim
131 if (!File.Exists(Application.iniFilePath)) 129 if (!File.Exists(Application.iniFilePath))
132 { 130 {
133 iniFileName = "OpenSim.xml"; 131 iniFileName = "OpenSim.xml";
134 Application.iniFilePath = Path.GetFullPath( 132 Application.iniFilePath = Path.GetFullPath(Path.Combine(Util.configDir(), iniFileName));
135 Path.Combine(Util.configDir(), iniFileName));
136 } 133 }
137 134
138 if (File.Exists(Application.iniFilePath)) 135 if (File.Exists(Application.iniFilePath))
@@ -142,15 +139,12 @@ namespace OpenSim
142 } 139 }
143 } 140 }
144 141
145 string iniDirName = 142 string iniDirName = startupConfig.GetString("inidirectory", "config");
146 startupConfig.GetString("inidirectory", "config"); 143 string iniDirPath = Path.Combine(Util.configDir(), iniDirName);
147 string iniDirPath =
148 Path.Combine(Util.configDir(), iniDirName);
149 144
150 if (Directory.Exists(iniDirPath)) 145 if (Directory.Exists(iniDirPath))
151 { 146 {
152 m_log.InfoFormat("Searching folder {0} for config ini files", 147 m_log.InfoFormat("Searching folder {0} for config ini files", iniDirPath);
153 iniDirPath);
154 148
155 string[] fileEntries = Directory.GetFiles(iniDirName); 149 string[] fileEntries = Directory.GetFiles(iniDirName);
156 foreach (string filePath in fileEntries) 150 foreach (string filePath in fileEntries)
@@ -172,7 +166,6 @@ namespace OpenSim
172 if (sources.Count == 0) 166 if (sources.Count == 0)
173 { 167 {
174 m_log.FatalFormat("[CONFIG]: Could not load any configuration"); 168 m_log.FatalFormat("[CONFIG]: Could not load any configuration");
175 m_log.FatalFormat("[CONFIG]: Did you copy the OpenSimDefaults.ini.example file to OpenSimDefaults.ini?");
176 Environment.Exit(1); 169 Environment.Exit(1);
177 } 170 }
178 171
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 9fdba92..df6a17b 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -211,16 +211,16 @@ namespace OpenSim
211 // Load the simulation data service 211 // Load the simulation data service
212 IConfig simDataConfig = m_config.Source.Configs["SimulationDataStore"]; 212 IConfig simDataConfig = m_config.Source.Configs["SimulationDataStore"];
213 if (simDataConfig == null) 213 if (simDataConfig == null)
214 throw new Exception("Configuration file is missing the [SimulationDataStore] section"); 214 throw new Exception("Configuration file is missing the [SimulationDataStore] section. Have you copied OpenSim.ini.example to OpenSim.ini to reference config-include/ files?");
215 string module = simDataConfig.GetString("LocalServiceModule", String.Empty); 215 string module = simDataConfig.GetString("LocalServiceModule", String.Empty);
216 if (String.IsNullOrEmpty(module)) 216 if (String.IsNullOrEmpty(module))
217 throw new Exception("Configuration file is missing the LocalServiceModule parameter in the [SimulationDataStore] section"); 217 throw new Exception("Configuration file is missing the LocalServiceModule parameter in the [SimulationDataStore] section.");
218 m_simulationDataService = ServerUtils.LoadPlugin<ISimulationDataService>(module, new object[] { m_config.Source }); 218 m_simulationDataService = ServerUtils.LoadPlugin<ISimulationDataService>(module, new object[] { m_config.Source });
219 219
220 // Load the estate data service 220 // Load the estate data service
221 IConfig estateDataConfig = m_config.Source.Configs["EstateDataStore"]; 221 IConfig estateDataConfig = m_config.Source.Configs["EstateDataStore"];
222 if (estateDataConfig == null) 222 if (estateDataConfig == null)
223 throw new Exception("Configuration file is missing the [EstateDataStore] section"); 223 throw new Exception("Configuration file is missing the [EstateDataStore] section. Have you copied OpenSim.ini.example to OpenSim.ini to reference config-include/ files?");
224 module = estateDataConfig.GetString("LocalServiceModule", String.Empty); 224 module = estateDataConfig.GetString("LocalServiceModule", String.Empty);
225 if (String.IsNullOrEmpty(module)) 225 if (String.IsNullOrEmpty(module))
226 throw new Exception("Configuration file is missing the LocalServiceModule parameter in the [EstateDataStore] section"); 226 throw new Exception("Configuration file is missing the LocalServiceModule parameter in the [EstateDataStore] section");