summaryrefslogtreecommitdiffstats
path: root/src/main/scripts/mmagent
diff options
context:
space:
mode:
authorVarun Gudisena <vg411h@att.com>2017-08-30 11:34:48 -0500
committerVarun Gudisena <vg411h@att.com>2017-08-30 11:35:00 -0500
commit2b4d7eb39b0ceb182467d564ab457a61ce873ed3 (patch)
treee7bcd0ad2b73d4598e8471940e97d0c01993c11e /src/main/scripts/mmagent
parentf5c12be64c403ae0b1b816e97b064d28479faac3 (diff)
ADD Initial Code Import
Added initial code for mirror agent Issue-id: DMAAP-76 Change-Id: I8b4521706c4f3a96720987fb75b5b8d5cfd05ec3 Signed-off-by: Varun Gudisena <vg411h@att.com>
Diffstat (limited to 'src/main/scripts/mmagent')
-rw-r--r--src/main/scripts/mmagent17
1 files changed, 17 insertions, 0 deletions
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 "$@"
+