diff options
Diffstat (limited to 'installation/ueb-listener')
-rw-r--r-- | installation/ueb-listener/src/main/scripts/start-ueb-listener.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/installation/ueb-listener/src/main/scripts/start-ueb-listener.sh b/installation/ueb-listener/src/main/scripts/start-ueb-listener.sh index 762d1bd6..64fb589f 100644 --- a/installation/ueb-listener/src/main/scripts/start-ueb-listener.sh +++ b/installation/ueb-listener/src/main/scripts/start-ueb-listener.sh @@ -32,21 +32,20 @@ JAVA_OPTS=${JAVA_OPTS:--Dhttps.protocols=TLSv1.1,TLSv1.2} JAVA=${JAVA:-${JAVA_HOME}/bin/java} # Redirect output from script to $LISTENER.out -exec >> ${UEBLISTENERROOT}/logs/$LISTENER.out -exec 2>&1 - - if [ ! -d ${UEBLISTENERROOT}/logs ] then mkdir ${UEBLISTENERROOT}/logs fi +exec >> ${UEBLISTENERROOT}/logs/$LISTENER.out +exec 2>&1 for file in ${UEBLISTENERROOT}/lib/*.jar do LISTENERCLASSPATH=$LISTENERCLASSPATH:$file done -exec ${JAVA} ${JAVA_OPTS} -jar ${UEBLISTENERROOT}/lib/ueb-listener*.jar -Dlog4j.configuration=file:${UEBLISTENERROOT}/lib/log4j.properties -cp ${LISTENERCLASSPATH} & +echo "Starting ueb-listener" +exec ${JAVA} ${JAVA_OPTS} -jar ${UEBLISTENERROOT}/lib/ueb-listener*.jar -Dlog4j.configuration=file:${UEBLISTENERROOT}/lib/log4j.properties -cp ${LISTENERCLASSPATH} |