Best way to start JBoss AS

jboss6.x

Solution

`nohup /usr/local/jboss/bin/run.sh -b 0.0.0.0 > /dev/null &` should do starting jb as well running it in background.

You can check for jboss running using `ps -ef | grep java`

Problem

I like to ask what is best way to start jboss AS. Because, whenever i close terminal or press ctrl+c then jboss, which is already started with `run.sh` script, start with shutdown. I have already tried executing `export LAUNCH_JBOSS_IN_BACKGROUND=1` before starting jboss via script `.run.sh` but it has not helped me much. Secondly, i like to know how can i validate that jboss is running except browsing `localhost:8080` or `localhost:8080/admin-console`. I am using both mac-osx/linux and Jboss-AS-6.0.0.Final.

Original source