aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseOpenSimServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers/BaseOpenSimServer.cs')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index c243042..2069c0e 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -47,7 +47,16 @@ namespace OpenSim.Framework.Servers
47 public BaseOpenSimServer() 47 public BaseOpenSimServer()
48 { 48 {
49 m_startuptime = DateTime.Now; 49 m_startuptime = DateTime.Now;
50 } 50 }
51
52 /// <summary>
53 /// Should be overriden by descendents if they need to perform extra shutdown processing
54 /// </summary>
55 protected virtual void Shutdown()
56 {
57 m_console.Close();
58 Environment.Exit(0);
59 }
51 60
52 /// <summary> 61 /// <summary>
53 /// Runs commands issued by the server console from the operator 62 /// Runs commands issued by the server console from the operator
@@ -59,7 +68,9 @@ namespace OpenSim.Framework.Servers
59 switch (command) 68 switch (command)
60 { 69 {
61 case "help": 70 case "help":
71 m_console.Notice("quit - equivalent to shutdown.");
62 m_console.Notice("show uptime - show server startup and uptime."); 72 m_console.Notice("show uptime - show server startup and uptime.");
73 m_console.Notice("shutdown - shutdown the server.\n");
63 break; 74 break;
64 75
65 case "show": 76 case "show":
@@ -68,6 +79,11 @@ namespace OpenSim.Framework.Servers
68 Show(cmdparams[0]); 79 Show(cmdparams[0]);
69 } 80 }
70 break; 81 break;
82
83 case "quit":
84 case "shutdown":
85 Shutdown();
86 break;
71 } 87 }
72 } 88 }
73 89