Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
{deck:id=gsh startup command}
Wiki Markup
{card:label=Unix}

No Format
nopaneltrue
cd geronimo-jetty6-javaee5-2.1
./bin/gsh

Wiki Markup
{card}
Wiki Markup
{card:label=Windows}

No Format
nopaneltrue
cd c:\g
bin\gsh

Wiki Markup
{card}
Wiki Markup
{deck}
Code Block
cd geronimo-jetty6-javaee5-2.1
./bin/gsh

...

Panel

coltrane kevan$ ./gsh
Apache Geronimo (2.1)

Type 'help' for more information.
-----------------------------------------------------------------------------------
kevan@coltrane:/> deploy/list-modules
Connecting to Geronimo server: localhost:1099
Username: system
Password: ******
Connection established
Found 84 modules
+ org.apache.geronimo.configs/activemq-broker/2.1/car
+ org.apache.geronimo.configs/activemq-ra/2.1/car
+ org.apache.geronimo.configs/axis/2.1/car
...

...

Code Block
kevan@coltrane:/> help

For information about Apache Geronimo, visit:
    http://geronimo.apache.org 

Available commands:
  execute-alias         Execute an alias
  exit                  Exit the shell
  print                 Alias to: echo
  alias                 Create an alias
  source                Load a file/url into the current shell
  ?                     Alias to: help
  .                     Alias to: source
  unalias               Remove an alias
  unset                 Unset a variable
  help                  Show command help
  echo                  Echo or print arguments to STDOUT
  clear                 Clear the terminal screen
  quit                  Alias to: exit
  set                   Set a variable

  remote-control

  server-control        Remote server control


  deploy

  undeploy              Undeploy a module
  connect               Connect to a Geronimo server
  install-library       Install library
  stop                  Stop a module
  list-targets          List targets
  restart               Restart a module
  install-plugin        Install a plugin
  list-plugins          Install plugins into a geronimo server
  start                 Start a module
  assemble              Extract a geronimo server from the current one
  deploy                Deploy a module
  list-modules          List modules
  redeploy              Redeploy a module
  distribute            Distribute a module
  disconnect            Disconnect from a Geronimo server


  remote

  rsh-server            Start a GShell server
  rsh                   Connect to a remote GShell server


  geronimo

  stop-server           Stop a Geronimo server
  start-client          Start a Geronimo application client
  start-server          Start a Geronimo server

...

Code Block
kevan@coltrane.local:/> deploy/list-modules --help
list-modules
 -- 

  TARGET                           Target name
  -a (--all)                       Show started or stopped modules
  -h (--help)                      Display this help message
  -p (--port) N                    Port, default 1099
  -r (--started)                   Show started modules only
  -s (--hostname, --server) VAL    Hostname, default localhost
  -t (--stopped)                   Show stopped modules only
  -u (--username) VAL              Username
  -w (--password) VAL              Password

...

More complete documentation is needed on these...

Starting and Stopping Geronimo in Gshell

Geronimo can be started through gshell using the geronimo/start-server command

Code Block

jason@Jason-Warners-Computer.local:/> geronimo/start-server --background

If the --background option is not used, then the server instance will maintain control of the terminal and a new instance of gshell must be started to interact with the server

Other Useful geronimo/start-server options (Use geronimo/start-server --help to see a full list of options)

Code Block

-D (--property) NAME=VALUE     Define system properties
-G (--gproperty) NAME=VALUE    Define an org.apache.geronimo property
-H (--home) DIR                Use a specific Geronimo home directory
-j (--jvm) DIR                 Use a specific Java Virtual Machine for server 
                                 process
-l (--logfile) FILE            Capture console output to file

Geronimo can be stopped using the geronimo/stop-server command

Code Block

jason@Jason-Warners-Computer.local:/> geronimo/stop-server -u system -w manager

If username (-u) and password (-w) are not provided on the command line, the user will be prompted for them before the server can shutdown.
The full set of geronimo/stop-server options can be seen in gshell using the --help option