[ome-users] Startup scripts
josh.moore at gmx.de
josh.moore at gmx.de
Tue Feb 26 14:19:48 GMT 2008
Hi Matthias,
Have you looked at the bin/shutdown.sh script under jboss/bin? It
typically does what you want:
./shutdown.sh -h
A JMX client to shutdown (exit or halt) a remote JBoss server.
usage: shutdown [options] <operation>
options:
-h, --help Show this help message (default)
-D<name>[=<value>] Set a system property
-- Stop processing options
-s, --server=<url> Specify the JNDI URL of the remote server
-n, --serverName=<url> Specify the JMX name of the ServerImpl
-a, --adapter=<name> Specify JNDI name of the MBeanServerConnection to use
-u, --user=<name> Specify the username for authentication
-p, --password=<name> Specify the password for authentication
operations:
-S, --shutdown Shutdown the server
-e, --exit=<code> Force the VM to exit with a status code
-H, --halt=<code> Force the VM to halt with a status code
~Josh
Matthias Dunda writes:
> Hi again-
>
> I am trying to include the OMERO server into my init.d startup
> sequence in Linux. Starting is no problem but I cannot do a "clean"
> stopping of the server, as the run.sh script starts a new Java VM -
> for which I do not get the PID.
>
> I'd like to avoid any dirty hacks (kill ++PID; assuming that the
> jvm gets the right next pid like run.sh) or a "killall java"! Does
> anyone have information on automatically starting and stopping the
> OMERO server?
>
> Cheers
> Matthias
>
> --
> Matthias Dunda, Dipl.-Inform.
> c.a.r.u.s. HMS GmbH
> Bornbarch 9, D-22848 Norderstedt
> Fon: +49.(0)40.5 14 35-0
> Fax: +49.(0)40.5 14 35-11 11
More information about the ome-users
mailing list