2006-11-16 10:20:06 +01:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# Environment variable file for casa_atsd. #
|
|
|
|
# #
|
|
|
|
# Note: This file is sourced by the casa_atsd rc script #
|
|
|
|
# when starting the service. #
|
|
|
|
# #
|
|
|
|
############################################################
|
2007-01-22 08:09:58 +01:00
|
|
|
|
2007-01-24 07:06:57 +01:00
|
|
|
# Set JAVA_HOME
|
2008-06-05 18:43:23 +02:00
|
|
|
if [ -d /usr/lib64/jvm/jre ]; then
|
2007-01-24 07:06:57 +01:00
|
|
|
LIB=lib64
|
|
|
|
else
|
|
|
|
LIB=lib
|
2006-11-29 07:23:48 +01:00
|
|
|
fi
|
2007-08-09 18:23:09 +02:00
|
|
|
|
2008-05-29 22:37:23 +02:00
|
|
|
JAVA_HOME="/usr/$LIB/jvm/jre"
|
2006-11-29 07:23:48 +01:00
|
|
|
|
2006-11-16 10:20:06 +01:00
|
|
|
CATALINA_BASE="/srv/www/casaats"
|
2007-08-09 18:23:09 +02:00
|
|
|
|
2008-05-29 22:37:23 +02:00
|
|
|
if [ -d /usr/share/tomcat6 ]; then
|
|
|
|
CATALINA_HOME="/usr/share/tomcat6"
|
2008-07-17 19:35:59 +02:00
|
|
|
CATALINA_START_CMD="/usr/bin/dtomcat6 start"
|
|
|
|
CATALINA_STOP_CMD="/usr/bin/dtomcat6 stop"
|
|
|
|
TOMCAT_CFG="/etc/CASA/authtoken/svc/tomcat6.conf"
|
2007-08-09 18:23:09 +02:00
|
|
|
else
|
2008-05-29 22:37:23 +02:00
|
|
|
if [ -d /usr/share/tomcat55 ]; then
|
|
|
|
CATALINA_HOME="/usr/share/tomcat55"
|
|
|
|
else
|
|
|
|
CATALINA_HOME="/usr/share/tomcat5"
|
|
|
|
fi
|
2008-07-17 19:35:59 +02:00
|
|
|
CATALINA_START_CMD="$CATALINA_HOME/bin/startup.sh"
|
|
|
|
CATALINA_STOP_CMD="$CATALINA_HOME/bin/shutdown.sh"
|
|
|
|
TOMCAT_CFG=
|
2007-08-09 18:23:09 +02:00
|
|
|
fi
|
|
|
|
|
2007-01-09 06:05:37 +01:00
|
|
|
CATALINA_PID="/var/lib/CASA/authtoken/svc/casaatsd.pid"
|
2007-06-01 17:39:35 +02:00
|
|
|
JAVA_OPTS="-Dcom.novell.casa.authtoksvc.config=/etc/CASA/authtoken/svc -Dlog4j.configuration=file:/etc/CASA/authtoken/svc/log4j.properties -Djava.library.path=/usr/$LIB"
|
2008-07-17 19:35:59 +02:00
|
|
|
export JAVA_HOME CATALINA_BASE CATALINA_HOME CATALINA_START_CMD CATALINA_STOP_CMD TOMCAT_CFG CATALINA_PID JAVA_OPTS
|
2006-11-16 10:20:06 +01:00
|
|
|
|