aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/GridServerBase.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-07 16:24:15 +0000
committerJustin Clarke Casey2008-05-07 16:24:15 +0000
commit250fb6f5dbcd6665c2783db08389b7e5ce698d5e (patch)
treece50e5ed7f0709cd2f819ad3c4eca63338407463 /OpenSim/Grid/GridServer/GridServerBase.cs
parentThank you very much, Xantor for a patch to improve (diff)
downloadopensim-SC_OLD-250fb6f5dbcd6665c2783db08389b7e5ce698d5e.zip
opensim-SC_OLD-250fb6f5dbcd6665c2783db08389b7e5ce698d5e.tar.gz
opensim-SC_OLD-250fb6f5dbcd6665c2783db08389b7e5ce698d5e.tar.bz2
opensim-SC_OLD-250fb6f5dbcd6665c2783db08389b7e5ce698d5e.tar.xz
* Move shutdown processing to base OpenSimServer, overriding the method where appropriate
* This also means that the command quit (as well as shutdown) will now close down grid servers (instead of only being in place for the region server)
Diffstat (limited to 'OpenSim/Grid/GridServer/GridServerBase.cs')
-rw-r--r--OpenSim/Grid/GridServer/GridServerBase.cs21
1 files changed, 5 insertions, 16 deletions
diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs
index 2feaac3..49c53e9 100644
--- a/OpenSim/Grid/GridServer/GridServerBase.cs
+++ b/OpenSim/Grid/GridServer/GridServerBase.cs
@@ -177,23 +177,12 @@ namespace OpenSim.Grid.GridServer
177 } 177 }
178 */ 178 */
179 } 179 }
180 180
181 public override void RunCmd(string cmd, string[] cmdparams) 181 protected override void Shutdown()
182 { 182 {
183 base.RunCmd(cmd, cmdparams); 183 foreach (IGridPlugin plugin in m_plugins) plugin.Close();
184 184
185 switch (cmd) 185 base.Shutdown();
186 {
187 case "help":
188 m_console.Notice("shutdown - shutdown the grid (USE CAUTION!)");
189 break;
190
191 case "shutdown":
192 foreach (IGridPlugin plugin in m_plugins) plugin.Close();
193 m_console.Close();
194 Environment.Exit(0);
195 break;
196 }
197 } 186 }
198 } 187 }
199} 188}