geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski" <ja...@laskowski.net.pl>
Subject Re: How to shut donwn one of the instances on Gronimo while they were started by Multiple server command cmd line
Date Thu, 29 Nov 2007 07:16:46 GMT
On Nov 29, 2007 8:06 AM, abpb2006 <abpb2006@yahoo.com> wrote:

> We have started 5 instances of Gronimo Server Installation using below :
>
> java java -Dorg.apache.geronimo.server.name=myserver
> -Djava.endorsed.dirs=lib /endorsed -javaagent:bin/jpa.jar -jar
> bin/server.jar
>
> Now if i need to shut down one of the intances using command line, how do i
> do that ?

They listen to different RMI ports so ./bin/shutdown.sh --port <port>
should work fine.

jlaskowski@dev /cygdrive/c/geronimo
$ ./bin/shutdown.sh -h
Using GERONIMO_BASE:   c:\geronimo
Using GERONIMO_HOME:   c:\geronimo
Using GERONIMO_TMPDIR: c:\geronimo\var\temp
Using JRE_HOME:        c:\apps\java5\jre

Command-line shutdown syntax:
    shutdown [options]

The available options are:
    --user
    --password
    --port

Here some sample sessions:

jlaskowski@dev /cygdrive/c/geronimo
$ ./bin/shutdown.sh --port 1099
Using GERONIMO_BASE:   c:\geronimo
Using GERONIMO_HOME:   c:\geronimo
Using GERONIMO_TMPDIR: c:\geronimo\var\temp
Using JRE_HOME:        c:\apps\java5\jre
Username: system
Password: *******
Locating server on port 1099...
Could not communicate with the server.  The server may not be running
or the port number may be incorrect.

jlaskowski@dev /cygdrive/c/geronimo
$ ./bin/shutdown.sh --port 2054
Using GERONIMO_BASE:   c:\geronimo
Using GERONIMO_HOME:   c:\geronimo
Using GERONIMO_TMPDIR: c:\geronimo\var\temp
Using JRE_HOME:        c:\apps\java5\jre
Username: system
Password: *******
Locating server on port 2054...
Could not communicate with the server.  The server may not be running
or the port number may be incorrect.

You can use ./bin/geronimo.sh stop --port too.

jlaskowski@dev /cygdrive/c/geronimo
$ ./bin/geronimo.sh --help
Using GERONIMO_BASE:   c:\geronimo
Using GERONIMO_HOME:   c:\geronimo
Using GERONIMO_TMPDIR: c:\geronimo\var\temp
Using JRE_HOME:        c:\apps\java5\jre
Usage: geronimo.sh command [geronimo_args]
commands:
  debug             Debug Geronimo in jdb debugger
  jpda run          Start Geronimo in foreground under JPDA debugger
  jpda start        Start Geronimo in background under JPDA debugger
  run               Start Geronimo in the foreground
  start             Start Geronimo in the background
  stop              Stop Geronimo
  stop --force      Stop Geronimo (followed by kill -KILL)

args for debug, jpda run, jpda start, run and start commands:
       --quiet       No startup progress
       --long        Long startup progress
  -v   --verbose     INFO log level
  -vv  --veryverbose DEBUG log level
       --override    Override configurations. USE WITH CAUTION!
       --help        Detailed help.

args for stop command:
       --user        Admin user
       --password    Admin password
       --port        RMI port to connect to

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Mime
View raw message