readd edexOsgi/deploy.edex.awips2/esb/bin files after gitignore fubar
This commit is contained in:
parent
78b5140dec
commit
192ce18f53
4 changed files with 207 additions and 0 deletions
36
edexOsgi/deploy.edex.awips2/esb/bin/daminfotranslator.sh
Normal file
36
edexOsgi/deploy.edex.awips2/esb/bin/daminfotranslator.sh
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
#!/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.
|
||||||
|
##
|
||||||
|
# resolve/set local variables
|
||||||
|
path_to_script=`readlink -f $0`
|
||||||
|
dir=$(dirname $path_to_script)
|
||||||
|
dir=$(dirname $dir)
|
||||||
|
awips_home=$(dirname $dir)
|
||||||
|
|
||||||
|
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."
|
||||||
|
fi
|
||||||
|
|
||||||
|
JAVA_INSTALL=`rpm -q --queryformat '%{INSTPREFIXES}' awips2-java`
|
||||||
|
|
||||||
|
${JAVA_INSTALL}/bin/java -classpath $awips_home/edex/lib/plugins/plugin-warning.jar:$awips_home/edex/lib/dependencies/org.geotools/jts-1.9.jar com.raytheon.edex.plugin.warning.tools.DamInfoTranslator $@
|
20
edexOsgi/deploy.edex.awips2/esb/bin/findEmptyLocalizationDirs.sh
Executable file
20
edexOsgi/deploy.edex.awips2/esb/bin/findEmptyLocalizationDirs.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Omaha #3690: Finds empty localization directories and deletes them with the
|
||||||
|
# '-d' flag. This can improve performance in some areas of the system.
|
||||||
|
|
||||||
|
if [[ $1 == '-d' ]]
|
||||||
|
then
|
||||||
|
echo "Delete all directory trees that don't contain regular files? [y/n]"
|
||||||
|
read answer
|
||||||
|
if [[ $answer == 'y' || $answer == 'Y' ]]
|
||||||
|
then
|
||||||
|
DEL_OPTS='-delete -print'
|
||||||
|
echo "Deleting the following directories"
|
||||||
|
else
|
||||||
|
echo "Aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
find /awips2/edex/data/utility -type d -empty $DEL_OPTS
|
41
edexOsgi/deploy.edex.awips2/esb/bin/setup.env
Normal file
41
edexOsgi/deploy.edex.awips2/esb/bin/setup.env
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
export AW_SITE_IDENTIFIER=OAX
|
||||||
|
export EXT_ADDR=external
|
||||||
|
|
||||||
|
# database
|
||||||
|
export DC_DB_NAME=dc_ob7oax
|
||||||
|
export FXA_DB_NAME=fxatext
|
||||||
|
export HM_DB_NAME=hmdb
|
||||||
|
export IH_DB_NAME=hd_ob92oax
|
||||||
|
export DATA_ARCHIVE_ROOT=/awips2/data_store
|
||||||
|
|
||||||
|
# postgres connection
|
||||||
|
export DB_ADDR=localhost
|
||||||
|
export DB_PORT=5432
|
||||||
|
|
||||||
|
# qpid connection
|
||||||
|
export BROKER_ADDR=localhost
|
||||||
|
export JMS_SERVER=tcp://${BROKER_ADDR}:5672
|
||||||
|
export JMS_VIRTUALHOST=edex
|
||||||
|
export JMS_CONNECTIONS_URL=http://${BROKER_ADDR}:8180/api/latest/connection/${JMS_VIRTUALHOST}
|
||||||
|
|
||||||
|
# pypies hdf5 connection
|
||||||
|
export PYPIES_SERVER=http://${EXT_ADDR}:9582
|
||||||
|
|
||||||
|
# these values are returned to clients that contact the localization service
|
||||||
|
export HTTP_PORT=9581
|
||||||
|
export HTTP_SERVER_PATH=/services
|
||||||
|
export HTTP_SERVER=http://${EXT_ADDR}:${HTTP_PORT}${HTTP_SERVER_PATH}
|
||||||
|
|
||||||
|
# data delivery config
|
||||||
|
#export CLUSTER_ID=NCF
|
||||||
|
#export DATADELIVERY_HOST=thredds.ucar.edu
|
||||||
|
#export EBXML_REGISTRY_FEDERATION_ENABLED=true
|
||||||
|
#export EBXML_REGISTRY_WEBSERVER_PORT=80
|
||||||
|
#export EBXML_THRIFT_SERVICE_PORT=9588
|
||||||
|
|
||||||
|
# hydroapps config
|
||||||
|
export SHARE_DIR=/awips2/edex/data/share
|
||||||
|
export TEMP_DIR=/awips2/edex/data/tmp
|
||||||
|
export apps_dir=${SHARE_DIR}/hydroapps
|
||||||
|
export SITE_IDENTIFIER=${AW_SITE_IDENTIFIER}
|
||||||
|
export AWIPS2_TEMP=/awips2/tmp
|
110
edexOsgi/deploy.edex.awips2/esb/bin/start.sh
Normal file
110
edexOsgi/deploy.edex.awips2/esb/bin/start.sh
Normal file
|
@ -0,0 +1,110 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# edex startup script
|
||||||
|
|
||||||
|
# Verify awips2 RPMs are installed
|
||||||
|
rpm -q awips2-python > /dev/null 2>&1
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
echo "ERROR: awips2-python Must Be Installed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
rpm -q awips2-java > /dev/null 2>&1
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
echo "ERROR: awips2-java Must Be Installed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
rpm -q awips2-psql > /dev/null 2>&1
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
echo "ERROR: awips2-psql Must Be Installed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
rpm -q awips2-yajsw > /dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "ERROR: awips2-yajsw Must Be Installed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
path_to_script=`readlink -f $0`
|
||||||
|
dir=$(dirname $path_to_script)
|
||||||
|
export EDEX_HOME=$(dirname $dir)
|
||||||
|
awips_home=$(dirname $EDEX_HOME)
|
||||||
|
export HOSTNAME=`hostname`
|
||||||
|
export SHORT_HOSTNAME=`hostname -s`
|
||||||
|
|
||||||
|
PYTHON_INSTALL="/awips2/python"
|
||||||
|
JAVA_INSTALL="/awips2/java"
|
||||||
|
PSQL_INSTALL="/awips2/psql"
|
||||||
|
YAJSW_HOME="/awips2/yajsw"
|
||||||
|
|
||||||
|
# Source The File With The Localization Information
|
||||||
|
source ${dir}/setup.env
|
||||||
|
|
||||||
|
export JAVA_HOME="${JAVA_INSTALL}"
|
||||||
|
export PATH=${PSQL_INSTALL}/bin:${JAVA_INSTALL}/bin:${PYTHON_INSTALL}/bin:/awips2/tools/bin:$PATH
|
||||||
|
export LD_LIBRARY_PATH=${JAVA_INSTALL}/lib:${PYTHON_INSTALL}/lib:${PSQL_INSTALL}/lib:$LD_LIBRARY_PATH
|
||||||
|
export FXA_DATA=/awips2/fxa/data
|
||||||
|
export ALLOW_ARCHIVE_DATA="false"
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
#create tmp dir
|
||||||
|
mkdir -p ${AWIPS2_TEMP}
|
||||||
|
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
echo "ERROR: Failed to create temp directory ${AWIPS2_TEMP}."
|
||||||
|
echo "Unable To Continue ... Terminating."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
YAJSW_JVM_ARGS="-Xmx32m -XX:ReservedCodeCacheSize=16m -Djava.io.tmpdir=${AWIPS2_TEMP}"
|
||||||
|
|
||||||
|
java ${YAJSW_JVM_ARGS} -jar ${YAJSW_HOME}/wrapper.jar -c ${EDEX_HOME}/conf/${CONF_FILE} ${WRAPPER_ARGS}
|
Loading…
Add table
Reference in a new issue