Details
-
Feature Request
-
Resolution: Done
-
Major
-
EAP 5.0.0, 4.2.0.GA_CP08, 4.3.0.GA_CP07
-
None
-
Linux
-
Compatibility/Configuration
Description
In its present form, the run.sh cannot handle JAVA_OPTS that require parameters with spaces,
The script should be changed to read
---------------
if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
- Execute the JVM in the foreground
eval "$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@"
JBOSS_STATUS=$?
else - Execute the JVM in the background
eval "$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@" &
JBOSS_PID=$!
---------------
(note the addition of eval)
With the change in place, it should be possible to define something like -XX:OnError=gdb - %p, in JAVA_OPTS
e.g
export JAVA_OPTS="$JAVA_OPTS \"-XX:OnError=gdb - %p\""
Without those changes, such JAVA_OPTS parameters have to be hard-coded in run.sh which is not desirable.
Attachments
Issue Links
- is blocked by
-
JBPAPP-3797 run.sh to create pid file
- Resolved
-
JBPAPP-3942 run.sh to create pid file
- Resolved