diff options
author | Dan Timoney <dtimoney@att.com> | 2017-10-16 10:35:18 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2017-10-16 10:41:31 -0400 |
commit | 82210588ad73e6b06d6e687278caa5fe1f453225 (patch) | |
tree | 7ebc4ca17d65c111610e211b56e86a61915d694b /installation | |
parent | b9e83935cbb19d62730d855cf0e1efbff3ee664d (diff) |
Create ueb-listener logs directory
Need to create logs directory before exec call to redirect output
there.
Change-Id: Ic435006a60cbe4c3e960cc6c5d8fb9b1bf051134
Issue-ID: SDNC-129
Signed-off-by: Dan Timoney <dtimoney@att.com>
Former-commit-id: 9d407f7116f88815ba18391f20d1e0890dbb61c2
Diffstat (limited to 'installation')
-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} |