cleanest way to restart jboss using a script

jboss, jboss7.x, linux, ubuntu-12.04

Solution

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

Problem

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?

Original source