(reformatted since it was stripping out some bracketed items)
JBoss version: 4.0.3
I'm running JBoss multiple instances on separate IPs. The server instances startup fine but the shutdown script (shutdown.sh) will not shut them down. I'm forced to kill the processes.
/usr/local/jboss-4.0.3/bin/run.sh -c userscopyofdefault -b ipaddress
(run.sh works fine)
/usr/local/jboss-4.0.3/shutdown.sh -S -b ipaddress
shutdown: invalid option -- b
(shutdown.sh does not work with or without the -b option)
Is there some other arguments to shutdown that would enable me to shutdown the separate instances?
The first command you are looking for is 'shutdown -help' this will show you the various command line arguments that are available.
The argument you need is: -
-s, --server=<url> Specify the JNDI URL of the remote server
The URL should be the JNP Url to connect to the specific instance i.e. 'jnp://127.0.0.1:1099' but with the IP address of the instance you want to stop.
The -s option worked.
/usr/local/jboss-4.0.3/bin/shutdown.sh -s jnp://ipaddress:1099