I don't know why the loop :-) I was assuming the server would exit specifically with
a code of 10 as a way for it to indicate it wants to be "rebooted" immediately.
I don't know if it ever does, but why that loop if not for the ability for the server
to say it wants to be restarted upon exit? Just a guess.
But for 100% backward compatibility, I just left it as is so the script would do exactly
what it did before if that LAUNCH_IN_BACKGROUND var isn't set. I have no problems
with taking that loop out:
| if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
| "$JAVA" $JAVA_OPTS \
| -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
| -classpath "$JBOSS_CLASSPATH" \
| org.jboss.Main "$@"
| else
| "$JAVA" $JAVA_OPTS \
| -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
| -classpath "$JBOSS_CLASSPATH" \
| org.jboss.Main "$@" &
| JBOSS_PID=$!
| export JBOSS_PID
| fi
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976400#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...