Stopping and starting

Written by Joseph Ottinger

Orion can largely be administered through the use of admin.jar. For some (many) operating systems and JVMs, however, this has proven problematic; your milage may vary based on any number of factors. If you're a deployer, be prepared to use your system's task management tools (^C, or killall -15 java) until this stabilizes. This is an issue of concern, but is getting better.

Also, note that in 1.3 JVMs, Orion installs hooks into the shutdown process, so if you do shut down via a system interrupt, you still have a graceful shutdown.

Short form: look in $ORION/config/principals.xml, to determine what the Administrator's password is. Then, to restart the server, you can issue the following command:

java -jar admin.jar ormi://localhost/ admin yourpassword -restart

 Note that you will want to make sure the "admin" user is configured in $ORION/principals.xml, with the password you've chosen, and the RMI port is 23791 by default (as per $ORION/rmi.xml). If the RMI port has been changed, you'll need to specify that as in the following example:

java -jar admin.jar ormi://localhost:9001/ admin yourpassword -shutdown
 

Note that if this does not shut down the server, you might need to add "force" to the command, so that it looks like this:

java -jar admin.jar ormi://localhost:9001/ admin yourpassword -shutdown force

Copyright © 2007 IronFlare AB