1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
| #!/bin/sh
# ******************************************************************************
# *
# * File: starthma
# *
# * Purpose: TIBCO Hawk HMA startup script for Unix.
# *
# * Copyright 1994-2010 TIBCO Software Inc. All rights reserved.
# ******************************************************************************
if [ $# != 0 -a $# != 2 ]
then
echo -e "\nUsage: starthma [-file <config file name>]\n"
exit 1
fi
if [ $# != 0 -a "$1" != "-file" ]
then
echo -e "\nUsage: starthma [-file <config file name>]\n"
exit 1
fi
# Default HAWK_INSTALL based on product installation.
if [ -z "$HAWK_INSTALL" ]; then
HAWK_INSTALL=/app/tibco/tibcoSOA/hawk/4.9
export HAWK_INSTALL
fi
# Default HAWK_ROOT based on product installation.
if [ -z "$HAWK_ROOT" ]; then
HAWK_ROOT=/app/tibco/tibcoSOA/Conf/tibco/cfgmgmt/hawk
export HAWK_ROOT
fi
# Default RV_ROOT based on product installation.
if [ -z "$RV_ROOT" ]; then
RV_ROOT=/app/tibco/tibcoSOA/tibrv/8.3
export RV_ROOT
fi
# Insure that HAWK_INSTALL has been set.
if [ -z "$HAWK_INSTALL" ]; then
echo -e "\nPlease set HAWK_INSTALL environment variable to point to TIBCO HAWK installation. \n"
exit 1
fi
# Insure that HAWK_ROOT has been set.
if [ -z "$HAWK_ROOT" ]; then
echo -e "\nPlease set HAWK_ROOT environment variable to point to TIBCO HAWK runtime. \n"
exit 1
fi
# Insure that RV_ROOT has been set.
if [ -z "$RV_ROOT" ]; then
echo -e "\nPlease set RV_ROOT environment variable to point to TIBCO Rendezvous installation.\n"
exit 1
fi
CDCMD=cd
# Add RV and Hawk to PATH.
PATH=$RV_ROOT/bin:$HAWK_INSTALL/bin:$PATH
export PATH
# Add RV and AMI to LD_LIBRARY_PATH, SHLIB_PATH, and LIBPATH.
LD_LIBRARY_PATH=$RV_ROOT/lib:$HAWK_INSTALL/ami_api/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
SHLIB_PATH=$RV_ROOT/lib:$HAWK_INSTALL/ami_api/lib:$SHLIB_PATH
export SHLIB_PATH
LIBPATH=$RV_ROOT/lib:$HAWK_INSTALL/ami_api/lib:$LIBPATH
export LIBPATH
DYLD_LIBRARY_PATH=$RV_ROOT/lib:$HAWK_INSTALL/ami_api/lib:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH
if [ $# = 0 ]; then
switches="-file ${HAWK_ROOT}/bin/hawkhma.cfg"
else
for arg
do
case "$arg" in
* ) switches="$switches $arg" ;;
esac
done
fi
HMA_EXECUTABLE=$HAWK_INSTALL/bin/tibhawkhma
# Start hma process
$CDCMD $HAWK_ROOT
if [ -z "$HAWK_TWO" ]; then
$HMA_EXECUTABLE $switches &
else
$HMA_EXECUTABLE $switches >/tmp/tibhawkhma.log 2>&1 &
fi |
Partager