blob: 18a75ea9bfb91ecda0f6f8ca1e484b859a8f2f0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 "$@"
|