Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cleanest way to restart jboss using a script

Tags:

I am using " ./standalone.sh -c standalone-full.xml " to start JBOSS. What is the cleanest way to restart jboss in this case? Any scripts that you can share?

like image 383
Saqib Ali Avatar asked Jan 24 '13 21:01

Saqib Ali


People also ask

How do I start JBoss in standalone mode?

To start up a JBoss AS 7 managed domain you need to execute the $JBOSS_HOME/bin/domain.sh script, and to start up a standalone server use $JBOSS_HOME/bin/standalone.sh. This will start it up using the default configuration.

How do I shut down JBoss?

Press Ctrl+C to stop JBoss Enterprise Application Platform.


1 Answers

You have to use CLI console. To restart, type

bin/jboss-cli.sh --connect --command=:reload 

To shutdown, type

bin/jboss-cli.sh --connect --command=:shutdown 

Source

like image 86
Petr Mensik Avatar answered Oct 12 '22 22:10

Petr Mensik