2006-11-13 05:05:01 +01:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# Environment variable file for casa_atvd. #
|
|
|
|
# #
|
|
|
|
# Note: This file is sourced by the casa_atvd rc script #
|
|
|
|
# when starting the service. #
|
|
|
|
# #
|
|
|
|
# The following variables are utilized by the daemon #
|
|
|
|
# and its rc script: #
|
|
|
|
# #
|
|
|
|
# DAEMON_NO_AUTORESTART_AFTER_CRASH - #
|
|
|
|
# #
|
|
|
|
# Set this variable to "1" if you want to disable the #
|
|
|
|
# auto-restart daemon after abnormal termination #
|
|
|
|
# feature. This variable is intended to facilitate #
|
|
|
|
# the discovery of problems during quality assurance #
|
|
|
|
# testing. Disabling of the auto-restart daemon after #
|
|
|
|
# abnormal termination feature will result in a #
|
|
|
|
# configuration that is less fault tolerant. #
|
|
|
|
# #
|
|
|
|
# DAEMON_COREDUMPS_WANTED - #
|
|
|
|
# #
|
|
|
|
# Set this variable to allow core dumps to be taken #
|
|
|
|
# when a daemon terminates abnormally. This variable #
|
|
|
|
# is only meaningful when the auto-restart daemon #
|
|
|
|
# feature mentioned above is enabled. Core dumps are #
|
|
|
|
# allowed to be taken when the auto-restart daemon #
|
2006-11-28 12:47:04 +01:00
|
|
|
# feature is disabled. Core dumps of casa_atvd service #
|
|
|
|
# processes are taken to the #
|
|
|
|
# /var/lib/CASA/authtoken/validate folder. #
|
2006-11-13 05:05:01 +01:00
|
|
|
# #
|
|
|
|
############################################################
|
2006-11-28 12:47:04 +01:00
|
|
|
if [ -d /usr/lib64 ]; then
|
|
|
|
LIB=lib64
|
2006-11-29 05:20:37 +01:00
|
|
|
SUNLIBDIR=amd64
|
2006-11-28 12:47:04 +01:00
|
|
|
else
|
|
|
|
LIB=lib
|
2006-11-29 05:20:37 +01:00
|
|
|
SUNLIBDIR=i386
|
2006-11-28 12:47:04 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
TEST_IBM_JVM=$(/usr/$LIB/jvm/jre-1.5.0/bin/java -version 2>&1 | grep -i ibm)
|
2006-11-18 08:10:14 +01:00
|
|
|
if [ -z "${TEST_IBM_JVM}" ]; then
|
|
|
|
# Assume Sun JVM
|
|
|
|
JVM_VER=SUN
|
2006-11-29 05:20:37 +01:00
|
|
|
LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}":/usr/$LIB/jvm/jre-1.5.0/lib/$SUNLIBDIR/server
|
2006-11-18 08:10:14 +01:00
|
|
|
else
|
|
|
|
JVM_VER=IBM
|
2006-11-28 12:47:04 +01:00
|
|
|
LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}":/usr/$LIB/jvm/jre-1.5.0/bin:/usr/$LIB/jvm/jre-1.5.0/bin/classic
|
2006-11-18 08:10:14 +01:00
|
|
|
fi
|
|
|
|
export JVM_VER
|
2006-11-13 05:05:01 +01:00
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
|