diff options
author | Justin Clarke Casey | 2008-05-07 16:24:15 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-07 16:24:15 +0000 |
commit | 250fb6f5dbcd6665c2783db08389b7e5ce698d5e (patch) | |
tree | ce50e5ed7f0709cd2f819ad3c4eca63338407463 /OpenSim/Grid/MessagingServer/Main.cs | |
parent | Thank you very much, Xantor for a patch to improve (diff) | |
download | opensim-SC-250fb6f5dbcd6665c2783db08389b7e5ce698d5e.zip opensim-SC-250fb6f5dbcd6665c2783db08389b7e5ce698d5e.tar.gz opensim-SC-250fb6f5dbcd6665c2783db08389b7e5ce698d5e.tar.bz2 opensim-SC-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 '')
-rw-r--r-- | OpenSim/Grid/MessagingServer/Main.cs | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs index bf793bf..22a7d9c 100644 --- a/OpenSim/Grid/MessagingServer/Main.cs +++ b/OpenSim/Grid/MessagingServer/Main.cs | |||
@@ -140,29 +140,13 @@ namespace OpenSim.Grid.MessagingServer | |||
140 | // m_lastCreatedUser = userID; | 140 | // m_lastCreatedUser = userID; |
141 | break; | 141 | break; |
142 | } | 142 | } |
143 | } | 143 | } |
144 | 144 | ||
145 | public override void RunCmd(string cmd, string[] cmdparams) | 145 | protected override void Shutdown() |
146 | { | 146 | { |
147 | base.RunCmd(cmd, cmdparams); | 147 | msgsvc.deregisterWithUserServer(); |
148 | 148 | ||
149 | switch (cmd) | 149 | base.Shutdown(); |
150 | { | ||
151 | case "help": | ||
152 | m_console.Notice("shutdown - shutdown the message server (USE CAUTION!)"); | ||
153 | break; | ||
154 | |||
155 | case "shutdown": | ||
156 | msgsvc.deregisterWithUserServer(); | ||
157 | m_console.Close(); | ||
158 | Environment.Exit(0); | ||
159 | break; | ||
160 | } | ||
161 | } | ||
162 | |||
163 | public override void Show(string ShowWhat) | ||
164 | { | ||
165 | base.Show(ShowWhat); | ||
166 | } | 150 | } |
167 | } | 151 | } |
168 | } | 152 | } |