From 81d5a4b6d8d8548dde98cbf827d171bb1ebf96ba Mon Sep 17 00:00:00 2001
From: Melanie
Date: Sun, 10 Jan 2010 03:03:18 +0000
Subject: Remove "login disable", "login enable" and "login status" commands.
---
OpenSim/Region/Application/OpenSim.cs | 48 -------------------------------
OpenSim/Region/Application/OpenSimBase.cs | 31 --------------------
2 files changed, 79 deletions(-)
(limited to 'OpenSim/Region/Application')
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 82b2fd4..c9f2cfa 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -287,18 +287,6 @@ namespace OpenSim
"create region",
"Create a new region", HandleCreateRegion);
- m_console.Commands.AddCommand("region", false, "login enable",
- "login enable",
- "Enable logins to the simulator", HandleLoginEnable);
-
- m_console.Commands.AddCommand("region", false, "login disable",
- "login disable",
- "Disable logins to the simulator", HandleLoginDisable);
-
- m_console.Commands.AddCommand("region", false, "login status",
- "login status",
- "Display status of logins", HandleLoginStatus);
-
m_console.Commands.AddCommand("region", false, "restart",
"restart",
"Restart all sims in this instance", RunCommand);
@@ -559,42 +547,6 @@ namespace OpenSim
}
///
- /// Enable logins
- ///
- ///
- ///
- private void HandleLoginEnable(string module, string[] cmd)
- {
- ProcessLogin(true);
- }
-
-
- ///
- /// Disable logins
- ///
- ///
- ///
- private void HandleLoginDisable(string module, string[] cmd)
- {
- ProcessLogin(false);
- }
-
- ///
- /// Log login status to the console
- ///
- ///
- ///
- private void HandleLoginStatus(string module, string[] cmd)
- {
- if (m_sceneManager.CurrentOrFirstScene.SceneGridService.RegionLoginsEnabled == false)
-
- m_log.Info("[ Login ] Login are disabled ");
- else
- m_log.Info("[ Login ] Login are enabled");
- }
-
-
- ///
/// Change and load configuration file data.
///
///
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 391856b..cf2ab65 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -203,12 +203,6 @@ namespace OpenSim
plugin.PostInitialise();
}
- // Only enable logins to the regions once we have completely finished starting up (apart from scripts)
- if ((SceneManager.CurrentOrFirstScene != null) && (SceneManager.CurrentOrFirstScene.SceneGridService != null))
- {
- SceneManager.CurrentOrFirstScene.SceneGridService.RegionLoginsEnabled = true;
- }
-
AddPluginCommands();
}
@@ -279,31 +273,6 @@ namespace OpenSim
}
///
- /// Initialises the asset cache. This supports legacy configuration values
- /// to ensure consistent operation, but values outside of that namespace
- /// are handled by the more generic resolution mechanism provided by
- /// the ResolveAssetServer virtual method. If extended resolution fails,
- /// then the normal default action is taken.
- /// Creation of the AssetCache is handled by ResolveAssetCache. This
- /// function accepts a reference to the instantiated AssetServer and
- /// returns an IAssetCache implementation, if possible. This is a virtual
- /// method.
- ///
- public void ProcessLogin(bool LoginEnabled)
- {
- if (LoginEnabled)
- {
- m_log.Info("[LOGIN]: Login is now enabled.");
- SceneManager.CurrentOrFirstScene.SceneGridService.RegionLoginsEnabled = true;
- }
- else
- {
- m_log.Info("[LOGIN]: Login is now disabled.");
- SceneManager.CurrentOrFirstScene.SceneGridService.RegionLoginsEnabled = false;
- }
- }
-
- ///
/// Execute the region creation process. This includes setting up scene infrastructure.
///
///
--
cgit v1.1
From e966e51b89bdc0fc36482621f8954e5faffc8fbf Mon Sep 17 00:00:00 2001
From: Melanie
Date: Mon, 11 Jan 2010 03:29:24 +0000
Subject: Add a console_port setting to let the rest console use a different
port from the region server
---
OpenSim/Region/Application/OpenSim.cs | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/Application')
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index c9f2cfa..cfa94ea 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -53,6 +53,7 @@ namespace OpenSim
protected string m_shutdownCommandsFile;
protected bool m_gui = false;
protected string m_consoleType = "local";
+ protected uint m_consolePort = 0;
private string m_timedScript = "disabled";
private Timer m_scriptTimer;
@@ -79,6 +80,7 @@ namespace OpenSim
else
m_consoleType= startupConfig.GetString("console", String.Empty);
+ m_consolePort = (uint)startupConfig.GetInt("console_port", 0);
m_timedScript = startupConfig.GetString("timer_Script", "disabled");
if (m_logFileAppender != null)
{
@@ -151,7 +153,16 @@ namespace OpenSim
base.StartupSpecific();
if (m_console is RemoteConsole)
- ((RemoteConsole)m_console).SetServer(m_httpServer);
+ {
+ if (m_consolePort == 0)
+ {
+ ((RemoteConsole)m_console).SetServer(m_httpServer);
+ }
+ else
+ {
+ ((RemoteConsole)m_console).SetServer(MainServer.GetHttpServer(m_consolePort));
+ }
+ }
//Run Startup Commands
if (String.IsNullOrEmpty(m_startupCommandsFile))
--
cgit v1.1
From ff55ae0eb210e542d483d04779a9c96210f01691 Mon Sep 17 00:00:00 2001
From: Melanie
Date: Mon, 11 Jan 2010 07:59:13 +0000
Subject: Make console_port work.
---
OpenSim/Region/Application/OpenSim.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/Application')
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index cfa94ea..e09d730 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -67,6 +67,7 @@ namespace OpenSim
base.ReadExtraConfigSettings();
IConfig startupConfig = m_config.Source.Configs["Startup"];
+ IConfig networkConfig = m_config.Source.Configs["Network"];
int stpMaxThreads = 15;
@@ -80,7 +81,8 @@ namespace OpenSim
else
m_consoleType= startupConfig.GetString("console", String.Empty);
- m_consolePort = (uint)startupConfig.GetInt("console_port", 0);
+ if (networkConfig != null)
+ m_consolePort = (uint)networkConfig.GetInt("console_port", 0);
m_timedScript = startupConfig.GetString("timer_Script", "disabled");
if (m_logFileAppender != null)
{
--
cgit v1.1