From 2b4d7eb39b0ceb182467d564ab457a61ce873ed3 Mon Sep 17 00:00:00 2001 From: Varun Gudisena Date: Wed, 30 Aug 2017 11:34:48 -0500 Subject: ADD Initial Code Import Added initial code for mirror agent Issue-id: DMAAP-76 Change-Id: I8b4521706c4f3a96720987fb75b5b8d5cfd05ec3 Signed-off-by: Varun Gudisena --- src/main/scripts/mmagent | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/main/scripts/mmagent (limited to 'src/main/scripts/mmagent') diff --git a/src/main/scripts/mmagent b/src/main/scripts/mmagent new file mode 100644 index 0000000..18a75ea --- /dev/null +++ b/src/main/scripts/mmagent @@ -0,0 +1,17 @@ +#!/bin/sh + +JAVA_HOMES="${INSTALL_ROOT}/opt/app/java/jdk/jdk170 ${INSTALL_ROOT}/opt/app/java/jdk/jdk160" +for jhome in ${JAVA_HOMES}; do + if [ -x "${jhome}"/bin/java ]; then + export JAVA_HOME=${jhome} + fi +done + +ROOT_DIR=`dirname $0`/.. +ROOT_DIR=`cd $ROOT_DIR; pwd` +CLASSPATH=${ROOT_DIR}'/lib/*' +PATH=${JAVA_HOME}/bin:${PATH} +export JAVA_HOME CLASSPATH PATH + +exec java -DMMAGENTHOME=$ROOT_DIR com.att.nsa.dmaapMMAgent.MirrorMakerAgent "$@" + -- cgit 1.2.3-korg