Skip to content
Permalink
Browse files
This closes #25
  • Loading branch information
ahgittin committed Mar 30, 2016
2 parents d060959 + b114306 commit 63fee9cdceda843b365ee67dadda22f367cc81a8
Showing 1 changed file with 7 additions and 1 deletion.
@@ -48,4 +48,10 @@ JAVA_OPTS="-Dbrooklyn.location.localhost.address=127.0.0.1 ${JAVA_OPTS}"

# start Brooklyn
echo $$ > "$ROOT/pid_java"
exec java ${JAVA_OPTS} -cp "${INITIAL_CLASSPATH}" org.apache.brooklyn.cli.Main "$@"
if [[ -n "$JAVA_HOME" && -d "$JAVA_HOME" ]] ; then
JAVACMD="$JAVA_HOME/bin/java"
else
JAVACMD="java"
fi

exec $JAVACMD ${JAVA_OPTS} -cp "${INITIAL_CLASSPATH}" org.apache.brooklyn.cli.Main "$@"

0 comments on commit 63fee9c

Please sign in to comment.