Stopping the Realm Server
Stopping the Universal Messaging Realm server depends on the installation operating system.
For win32 operating systems, the installer installs a shortcut called Stop Universal Messaging Realm Server. Furthermore, the server command prompt can be used to open a console window and the server can be stopped by typing nstopserver.
If however you have started the Realm from service control panel then stopping it should also be done from there.
For Linux/Solaris/Generic Unix operating systems, stopping the Realm can be done using the softlink inside the Server directory:
$ cd ~/terracotta/universalmessaging_<version>/links/Server/umserver
$ ./Stop\ Universal\ Messaging\ Realm\ Server
where <version> is the product version number.
At this point the server will try and close down all client links and resources and P2P services. This may take some time to perform a graceful shutdown due to the Operating System resources that the Realm Server uses. The RealmServer will automatically perform a complete shutdown within 10 seconds if the graceful shutdown has not yet completed at which the Realm Server will perform an immediate shutdown. The Realm Server will generate a thread dump which will be written to the log file prior to shutdown.
The Realm Server will then log the shutdown within the server log and can be confirmed as complete by the following entries
[Tue Apr 08 09:26:58 BST 2014],Shutdown: Realm Server shutdown sequence started
[Tue Apr 08 09:26:58 BST 2014],Shutdown: Removed all logger listeners
[Tue Apr 08 09:26:58 BST 2014],Shutdown: Disabling client requests
[Tue Apr 08 09:26:58 BST 2014],Shutdown: Stopping Realm status updates
[Tue Apr 08 09:26:58 BST 2014],Shutdown: Stopping Interface Manager
[Tue Apr 08 09:26:58 BST 2014],Shutdown: Closing all accept handlers
[Tue Apr 08 09:26:58 BST 2014],Shutdown: Closing all sessions with connected clients
[Tue Apr 08 09:26:58 BST 2014],Shutdown: Stopping Cluster management
[Tue Apr 08 09:26:58 BST 2014],Cluster> Cluster Agent restoring client request table
[Tue Apr 08 09:26:58 BST 2014],Cluster> Cluster Agent finished restoring client request table
[Tue Apr 08 09:26:58 BST 2014],--------- Log File Closed ---------