aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Base
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-11-22 04:11:03 +0000
committerJustin Clark-Casey (justincc)2012-11-22 04:11:03 +0000
commitcf03d6ea9223e71c27ca91633a30abcf1368ec58 (patch)
tree633becd54bea45479837debfeea41f73fabe4cda /OpenSim/Server/Base
parentfactor out common HandleShow code for "show uptime" (diff)
downloadopensim-SC-cf03d6ea9223e71c27ca91633a30abcf1368ec58.zip
opensim-SC-cf03d6ea9223e71c27ca91633a30abcf1368ec58.tar.gz
opensim-SC-cf03d6ea9223e71c27ca91633a30abcf1368ec58.tar.bz2
opensim-SC-cf03d6ea9223e71c27ca91633a30abcf1368ec58.tar.xz
Factor out common registration of "show uptime" command
Diffstat (limited to 'OpenSim/Server/Base')
-rw-r--r--OpenSim/Server/Base/ServicesServerBase.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Server/Base/ServicesServerBase.cs b/OpenSim/Server/Base/ServicesServerBase.cs
index 7b49ac9..285168c 100644
--- a/OpenSim/Server/Base/ServicesServerBase.cs
+++ b/OpenSim/Server/Base/ServicesServerBase.cs
@@ -239,6 +239,8 @@ namespace OpenSim.Server.Base
239 CreatePIDFile(startupConfig.GetString("PIDFile")); 239 CreatePIDFile(startupConfig.GetString("PIDFile"));
240 } 240 }
241 241
242 RegisterCommonCommands();
243
242 // Register the quit command 244 // Register the quit command
243 // 245 //
244 MainConsole.Instance.Commands.AddCommand("General", false, "quit", 246 MainConsole.Instance.Commands.AddCommand("General", false, "quit",
@@ -254,11 +256,6 @@ namespace OpenSim.Server.Base
254 "command-script <script>", 256 "command-script <script>",
255 "Run a command script from file", HandleScript); 257 "Run a command script from file", HandleScript);
256 258
257 MainConsole.Instance.Commands.AddCommand("General", false, "show uptime",
258 "show uptime",
259 "Show server uptime", HandleShow);
260
261
262 // Allow derived classes to perform initialization that 259 // Allow derived classes to perform initialization that
263 // needs to be done after the console has opened 260 // needs to be done after the console has opened
264 // 261 //