diff options
Diffstat (limited to 'OpenSim/Grid/GridServer/GridServerBase.cs')
-rw-r--r-- | OpenSim/Grid/GridServer/GridServerBase.cs | 21 |
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 | } |