summaryrefslogtreecommitdiffstats
path: root/pki/base/ca/shared/conf/tomcat5.conf
blob: 181fb12dca7059e8272da878894c78244da8d67e (plain)
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
# tomcat5 service configuration file

# Check to insure that this configuration file's associated PKI
# subsystem currently resides on this system.
PKI_SUBSYSTEM_TYPE=[PKI_SUBSYSTEM_TYPE]
if [ ! -d /usr/share/pki/${PKI_SUBSYSTEM_TYPE} ] ; then
	echo "This machine is missing the '${PKI_SUBSYSTEM_TYPE}' subsystem!"
	exit 255
fi

# you could also override JAVA_HOME here
# Where your java installation lives
JAVA_HOME="/usr/lib/jvm/jre"

# You can pass some parameters to java
# here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"

# Where your tomcat installation lives
# That change from previous RPM where TOMCAT_HOME 
# used to be /var/tomcat.
# Now /var/tomcat will be the base for webapps only
CATALINA_HOME="/usr/share/tomcat5"
JASPER_HOME="/usr/share/tomcat5"
CATALINA_TMPDIR="/usr/share/tomcat5/temp"
JAVA_ENDORSED_DIRS="/usr/share/tomcat5/common/endorsed"

# What user should run tomcat
TOMCAT_USER="[PKI_USER]"
TOMCAT_GROUP="[PKI_GROUP]"

# You can change your tomcat locale here
#LANG=en_US

# Time to wait in seconds, while starting process
STARTUP_WAIT=30

# Time to wait in seconds, before killing process
SHUTDOWN_WAIT=30


# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Just do not forget to export them :)

OS=`uname -s`
if [ $OS = "Linux" ]; then
	PLATFORM=`uname -i`
	if [ $PLATFORM = "i386" ]; then
		# 32-bit Linux
		LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/dirsec:/usr/lib
	elif [ $PLATFORM = "x86_64" ]; then
		# 64-bit Linux
		LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/dirsec:/usr/lib64:/usr/lib
	fi
	export LD_LIBRARY_PATH
elif [ $PLATFORM = "SunOS" ]; then
	PLATFORM=`uname -p`
	if	[ "${PLATFORM}" = "sparc" ] &&
		[ -d "/usr/lib/sparcv9/" ] ; then
		PLATFORM="sparcv9"
	fi
	if [ $PLATFORM = "sparc" ]; then
		# 32-bit Solaris
		LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/dirsec:/usr/lib
	elif [ $PLATFORM = "sparcv9" ]; then
		# 64-bit Solaris
		JAVA_OPTS="-d64"
		export JAVA_OPTS
		LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/sparcv9/dirsec:/usr/lib/sparcv9:/usr/lib/dirsec:/usr/lib
	fi
	export LD_LIBRARY_PATH
fi