Conflicts: cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/commondialogs/SCANUnwarnedDlg.java cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/resource/ScanResourceData.java cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/AbstractTableDlg.java cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/SCANCellTableDlg.java cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/SCANDmdTableDlg.java cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/SCANMesoTableDlg.java cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/SCANTvsTableDlg.java cave/com.raytheon.uf.viz.monitor/src/com/raytheon/uf/viz/monitor/ui/dialogs/TableComp.java cave/com.raytheon.viz.texteditor/src/com/raytheon/viz/texteditor/dialogs/TextEditorDialog.java cave/com.raytheon.viz.warnings/src/com/raytheon/viz/warnings/rsc/AbstractWWAResource.java edexOsgi/com.raytheon.edex.ingestsrv/res/spring/persist-ingest.xml edexOsgi/com.raytheon.edex.plugin.gfe/src/com/raytheon/edex/plugin/gfe/db/dao/GFEDao.java edexOsgi/com.raytheon.edex.plugin.gfe/src/com/raytheon/edex/plugin/gfe/smartinit/IFPWE.java edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscMosaic.py edexOsgi/com.raytheon.edex.plugin.grib/src/com/raytheon/edex/plugin/grib/decoderpostprocessors/EnsembleGridAssembler.java edexOsgi/com.raytheon.uf.common.dataplugin/src/com/raytheon/uf/common/dataplugin/annotations/DataURIUtil.java msi/VizLauncher/VizLauncher/com/raytheon/viz/launcher/process/AbstractProcessLauncher.cs Change-Id: Iaf9f42e7ee93949d34c70916fd91acf8c838c83a Former-commit-id:a0b6ea8bb2
[formerly b09f1559254f06a82afa91f0cc14c8150f88ce64] Former-commit-id:0c4ae068ad
152 lines
4.5 KiB
Bash
152 lines
4.5 KiB
Bash
#!/bin/bash
|
|
##
|
|
# This software was developed and / or modified by Raytheon Company,
|
|
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
#
|
|
# U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
# This software product contains export-restricted data whose
|
|
# export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
# to non-U.S. persons whether in the United States or abroad requires
|
|
# an export license or other authorization.
|
|
#
|
|
# Contractor Name: Raytheon Company
|
|
# Contractor Address: 6825 Pine Street, Suite 340
|
|
# Mail Stop B8
|
|
# Omaha, NE 68106
|
|
# 402.291.0100
|
|
#
|
|
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
# further licensing information.
|
|
##
|
|
# edex startup script
|
|
|
|
if [ -z "${SKIP_RPM_CHECK}" ]; then
|
|
# Verify that awips2-python and awips2-java are installed.
|
|
rpm -q awips2-python > /dev/null 2>&1
|
|
RC=$?
|
|
if [ ${RC} -ne 0 ]; then
|
|
echo "ERROR: awips2-python Must Be Installed."
|
|
echo "Unable To Continue ... Terminating."
|
|
exit 1
|
|
fi
|
|
|
|
rpm -q awips2-java > /dev/null 2>&1
|
|
RC=$?
|
|
if [ ${RC} -ne 0 ]; then
|
|
echo "ERROR: awips2-java Must Be Installed."
|
|
echo "Unable To Continue ... Terminating."
|
|
exit 1
|
|
fi
|
|
|
|
rpm -q awips2-psql > /dev/null 2>&1
|
|
RC=$?
|
|
if [ ${RC} -ne 0 ]; then
|
|
echo "ERROR: awips2-psql Must Be Installed."
|
|
echo "Unable To Continue ... Terminating."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
path_to_script=`readlink -f $0`
|
|
dir=$(dirname $path_to_script)
|
|
|
|
export EDEX_HOME=$(dirname $dir)
|
|
awips_home=$(dirname $EDEX_HOME)
|
|
|
|
# Find the locations of awips2-python and awips2-java.
|
|
# only set if the location has not already been exported
|
|
if [ -z "$PYTHON_INSTALL" ]; then PYTHON_INSTALL="$awips_home/python"; fi
|
|
if [ -z "$JAVA_INSTALL" ]; then JAVA_INSTALL="$awips_home/java"; fi
|
|
if [ -z "$PSQL_INSTALL" ]; then PSQL_INSTALL="$awips_home/psql"; fi
|
|
|
|
# Source The File With The Localization Information
|
|
source ${dir}/setup.env
|
|
|
|
#source /awips2/edex/bin/yajsw/bin/setenv.sh
|
|
|
|
### AWIPS 1 support ###
|
|
if [ -f /etc/rc.config.d/AWIPS ]; then
|
|
. /etc/rc.config.d/AWIPS
|
|
fi
|
|
export SHLIB_PATH=$PROJECT/sharedlib
|
|
### End AWIPS 1 support ###
|
|
|
|
export HOSTNAME=`hostname`
|
|
|
|
# set Python & Java into the path
|
|
export PATH=$awips_home/bin:${JAVA_INSTALL}/bin:${PYTHON_INSTALL}/bin:$PATH
|
|
|
|
# set Service Backup scripts into the path
|
|
export PATH=$PATH:$awips_home/GFESuite/bin:$awips_home/GFESuite/ServiceBackup/scripts
|
|
|
|
# set AWIPS 1 stuff into path
|
|
export PATH=$PATH:$PROJECT/bin
|
|
|
|
export JAVA_HOME="${JAVA_INSTALL}"
|
|
export LD_LIBRARY_PATH=$EDEX_HOME/lib/lib_illusion:$EDEX_HOME/lib/native/linux32/awips1:${JAVA_INSTALL}/lib:${PYTHON_INSTALL}/lib:${PSQL_INSTALL}/lib:$PROJECT/sharedLib:$LD_LIBRARY_PATH
|
|
|
|
export LD_PRELOAD="libpython.so"
|
|
export FXA_DATA=$EDEX_HOME/data/fxa
|
|
export ALLOW_ARCHIVE_DATA="false"
|
|
|
|
# setup environment for HPE
|
|
export AMQP_SPEC=$awips_home/python/share/amqp/amqp.0-10.xml
|
|
|
|
#-------------------------------------------------------------------------
|
|
#read and interpret the command line arguments
|
|
#-------------------------------------------------------------------------
|
|
CONSOLE_FLAG=on
|
|
CONSOLE_LOGLEVEL=DEBUG
|
|
DEBUG_FLAG=off
|
|
PROFILE_FLAG=off
|
|
CONF_FILE="wrapper.conf"
|
|
RUN_MODE=
|
|
for arg in $@
|
|
do
|
|
case $arg in
|
|
-b|-d|--debug|-db|-bd) DEBUG_FLAG=on;;
|
|
-p|--profiler) PROFILE_FLAG=on;;
|
|
-h|--highmem) ;; # does nothing, only here to prevent issues if someone still uses -h
|
|
-noConsole) CONSOLE_FLAG=off;;
|
|
*) RUN_MODE=$arg;;
|
|
esac
|
|
done
|
|
|
|
export EDEX_RUN_MODE=$RUN_MODE
|
|
|
|
if [ $CONSOLE_FLAG == "off" ]; then
|
|
CONSOLE_LOGLEVEL=NONE
|
|
fi
|
|
|
|
export CONSOLE_LOGLEVEL
|
|
|
|
# determine whether we are running a 32-bit or 64-bit version of EDEX -
|
|
# based on the AWIPS II Java that has been installed
|
|
EDEX_BITS="32"
|
|
EXPECTED_ARCH=`file ${JAVA_INSTALL}/bin/java | awk '{ print $3; }'`
|
|
if [ "${EXPECTED_ARCH}" = "64-bit" ]; then
|
|
EDEX_BITS="64"
|
|
fi
|
|
export EDEX_BITS=${EDEX_BITS}
|
|
|
|
# source environment files
|
|
. $EDEX_HOME/etc/default.sh
|
|
|
|
if [ -e $EDEX_HOME/etc/${RUN_MODE}.sh ]; then
|
|
. $EDEX_HOME/etc/${RUN_MODE}.sh
|
|
fi
|
|
|
|
if [ $PROFILE_FLAG == "on" ]; then
|
|
. $EDEX_HOME/etc/profiler.sh
|
|
fi
|
|
|
|
# enable core dumps
|
|
#ulimit -c unlimited
|
|
|
|
WRAPPER_ARGS=""
|
|
if [ $DEBUG_FLAG == "on" ]; then
|
|
WRAPPER_ARGS="wrapper.java.debug.port=${EDEX_DEBUG_PORT}"
|
|
echo "To Debug ... Connect to Port: ${EDEX_DEBUG_PORT}."
|
|
fi
|
|
|
|
java -Xmx32m -XX:MaxPermSize=12m -XX:ReservedCodeCacheSize=4m -jar ${EDEX_HOME}/bin/yajsw/wrapper.jar -c ${EDEX_HOME}/conf/${CONF_FILE} ${WRAPPER_ARGS}
|