X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fueb-listener%2Fsrc%2Fmain%2Fscripts%2Fstart-ueb-listener.sh;h=773e228c488d7b5e7538abf4b9e0e531b10ca1f9;hb=cff14ced3c9bd1d9440a774c7dc3618bbeef4c27;hp=64fb589f2f3ffa276aeadfe44aef5b3e00930a8f;hpb=82210588ad73e6b06d6e687278caa5fe1f453225;p=sdnc%2Foam.git 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 64fb589f..773e228c 100644 --- a/installation/ueb-listener/src/main/scripts/start-ueb-listener.sh +++ b/installation/ueb-listener/src/main/scripts/start-ueb-listener.sh @@ -27,17 +27,11 @@ PROPERTY_DIR=${PROPERTY_DIR:-/opt/onap/sdnc/data/properties} LISTENER=ueb-listener UEBLISTENERROOT=${UEBLISTENERROOT:-/opt/onap/sdnc/ueb-listener} +LOGDIR=${LOGDIR:-${UEBLISTENERROOT}/logs} JAVA_HOME=${JAVA_HOME:-/usr/lib/jvm/java-7-oracle} JAVA_OPTS=${JAVA_OPTS:--Dhttps.protocols=TLSv1.1,TLSv1.2} JAVA=${JAVA:-${JAVA_HOME}/bin/java} -# Redirect output from script to $LISTENER.out -if [ ! -d ${UEBLISTENERROOT}/logs ] -then - mkdir ${UEBLISTENERROOT}/logs -fi -exec >> ${UEBLISTENERROOT}/logs/$LISTENER.out -exec 2>&1 for file in ${UEBLISTENERROOT}/lib/*.jar do @@ -45,7 +39,8 @@ do done echo "Starting ueb-listener" -exec ${JAVA} ${JAVA_OPTS} -jar ${UEBLISTENERROOT}/lib/ueb-listener*.jar -Dlog4j.configuration=file:${UEBLISTENERROOT}/lib/log4j.properties -cp ${LISTENERCLASSPATH} +cd ${UEBLISTENERROOT} +exec ${JAVA} ${JAVA_OPTS} -jar ${UEBLISTENERROOT}/lib/ueb-listener*.jar -Dlog4j.configurationFile=${PROPERTY_DIR}/log4j2.xml -cp ${LISTENERCLASSPATH}