X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fdmaap-listener%2Fsrc%2Fmain%2Fscripts%2Fstart-dmaap-listener.sh;h=ab3b7392130ea89a4f8c31d8507a3b78c98814fc;hb=cff14ced3c9bd1d9440a774c7dc3618bbeef4c27;hp=e606585fff1a5d5ba897a6b9535fc885956548e2;hpb=1861e0d23547acffeb5c44485104f11a40a8fda0;p=sdnc%2Foam.git diff --git a/installation/dmaap-listener/src/main/scripts/start-dmaap-listener.sh b/installation/dmaap-listener/src/main/scripts/start-dmaap-listener.sh index e606585f..ab3b7392 100644 --- a/installation/dmaap-listener/src/main/scripts/start-dmaap-listener.sh +++ b/installation/dmaap-listener/src/main/scripts/start-dmaap-listener.sh @@ -27,6 +27,7 @@ PROPERTY_DIR=${PROPERTY_DIR:-/opt/onap/sdnc/data/properties} LISTENER=dmaap-listener DMAAPLISTENERROOT=${DMAAPLISTENERROOT:-/opt/onap/sdnc/dmaap-listener} +LOGDIR=${LOGDIR:-${DMAAPLISTENERROOT}/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} @@ -39,7 +40,8 @@ do done echo "Starting dmaap-listener" -exec ${JAVA} ${JAVA_OPTS} -Dlog4j.configurationFile=${PROPERTY_DIR}/log4j.properties -jar ${DMAAPLISTENERROOT}/lib/dmaap-listener*.jar dmaap-listener.properties -cp ${LISTENERCLASSPATH} +cd ${DMAAPLISTENERROOT} +exec ${JAVA} ${JAVA_OPTS} -Dlog4j.configurationFile=${PROPERTY_DIR}/log4j2.xml -jar ${DMAAPLISTENERROOT}/lib/dmaap-listener*.jar dmaap-listener.properties -cp ${LISTENERCLASSPATH}