aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index fb1e831..caf74cf 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Diagnostics;
31using System.IO; 32using System.IO;
32using System.Reflection; 33using System.Reflection;
33using System.Text; 34using System.Text;
@@ -138,7 +139,7 @@ namespace OpenSim
138 m_log.Info("===================================================================="); 139 m_log.Info("====================================================================");
139 m_log.Info("========================= STARTING OPENSIM ========================="); 140 m_log.Info("========================= STARTING OPENSIM =========================");
140 m_log.Info("===================================================================="); 141 m_log.Info("====================================================================");
141 142
142 //m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString()); 143 //m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString());
143 // http://msdn.microsoft.com/en-us/library/bb384202.aspx 144 // http://msdn.microsoft.com/en-us/library/bb384202.aspx
144 //GCSettings.LatencyMode = GCLatencyMode.Batch; 145 //GCSettings.LatencyMode = GCLatencyMode.Batch;
@@ -225,7 +226,7 @@ namespace OpenSim
225 /// </summary> 226 /// </summary>
226 private void RegisterConsoleCommands() 227 private void RegisterConsoleCommands()
227 { 228 {
228 m_console.Commands.AddCommand("Regions", false, "force update", 229 m_console.Commands.AddCommand("Objects", false, "force update",
229 "force update", 230 "force update",
230 "Force the update of all objects on clients", 231 "Force the update of all objects on clients",
231 HandleForceUpdate); 232 HandleForceUpdate);
@@ -306,7 +307,7 @@ namespace OpenSim
306 + " If this is not given then the oar is saved to region.oar in the current directory.", 307 + " If this is not given then the oar is saved to region.oar in the current directory.",
307 SaveOar); 308 SaveOar);
308 309
309 m_console.Commands.AddCommand("Regions", false, "edit scale", 310 m_console.Commands.AddCommand("Objects", false, "edit scale",
310 "edit scale <name> <x> <y> <z>", 311 "edit scale <name> <x> <y> <z>",
311 "Change the scale of a named prim", HandleEditScale); 312 "Change the scale of a named prim", HandleEditScale);
312 313
@@ -349,7 +350,7 @@ namespace OpenSim
349 "show ratings", 350 "show ratings",
350 "Show rating data", HandleShow); 351 "Show rating data", HandleShow);
351 352
352 m_console.Commands.AddCommand("Regions", false, "backup", 353 m_console.Commands.AddCommand("Objects", false, "backup",
353 "backup", 354 "backup",
354 "Persist currently unsaved object changes immediately instead of waiting for the normal persistence call.", RunCommand); 355 "Persist currently unsaved object changes immediately instead of waiting for the normal persistence call.", RunCommand);
355 356
@@ -410,7 +411,7 @@ namespace OpenSim
410 "modules unload <name>", 411 "modules unload <name>",
411 "Unload a module", HandleModules); 412 "Unload a module", HandleModules);
412 413
413 m_console.Commands.AddCommand("Regions", false, "kill uuid", 414 m_console.Commands.AddCommand("Objects", false, "kill uuid",
414 "kill uuid <UUID>", 415 "kill uuid <UUID>",
415 "Kill an object by UUID", KillUUID); 416 "Kill an object by UUID", KillUUID);
416 } 417 }
@@ -618,10 +619,11 @@ namespace OpenSim
618 return; 619 return;
619 } 620 }
620 621
621 PopulateRegionEstateInfo(regInfo); 622 bool changed = PopulateRegionEstateInfo(regInfo);
622 IScene scene; 623 IScene scene;
623 CreateRegion(regInfo, true, out scene); 624 CreateRegion(regInfo, true, out scene);
624 regInfo.EstateSettings.Save(); 625 if (changed)
626 regInfo.EstateSettings.Save();
625 } 627 }
626 628
627 /// <summary> 629 /// <summary>