From 248ae383df38a3e549651393af2ae0463f6c7273 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Thu, 25 Aug 2016 11:24:52 -0400 Subject: [PATCH] ARTEMIS-700 Improving how the log manager is found on Posix systems --- .../apache/activemq/artemis/cli/commands/bin/artemis | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis index 10da1c9b67..8129341ad0 100755 --- a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis +++ b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis @@ -96,9 +96,18 @@ if $cygwin ; then CLASSPATH=`cygpath --windows "$CLASSPATH"` fi + +# finding the Log Manager +LOG_MANAGER=`ls $ARTEMIS_HOME/lib/jboss-logmanager*jar 2>/dev/null` + +if [ -z "$LOG_MANAGER" ] ; then + # this is the one found when the server was created + LOG_MANAGER="$ARTEMIS_HOME/lib/${logmanager}" +fi + exec "$JAVACMD" ${java-opts} \ $JAVA_ARGS \ - -Xbootclasspath/a:"$ARTEMIS_HOME/lib/${logmanager}" \ + -Xbootclasspath/a:"$LOG_MANAGER" \ -Djava.security.auth.login.config="$ARTEMIS_INSTANCE/etc/login.config" \ $ARTEMIS_CLUSTER_PROPS \ -classpath "$CLASSPATH" \