mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			74 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env bash
 | 
						|
# Licensed to the Apache Software Foundation (ASF) under one
 | 
						|
# or more contributor license agreements.  See the NOTICE file
 | 
						|
# distributed with this work for additional information
 | 
						|
# regarding copyright ownership.  The ASF licenses this file
 | 
						|
# to you under the Apache License, Version 2.0 (the
 | 
						|
# "License"); you may not use this file except in compliance
 | 
						|
# with the License.  You may obtain a copy of the License at
 | 
						|
# 
 | 
						|
#   http://www.apache.org/licenses/LICENSE-2.0
 | 
						|
# 
 | 
						|
# Unless required by applicable law or agreed to in writing,
 | 
						|
# software distributed under the License is distributed on an
 | 
						|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 | 
						|
# KIND, either express or implied.  See the License for the
 | 
						|
# specific language governing permissions and limitations
 | 
						|
# under the License.
 | 
						|
 | 
						|
 | 
						|
# System-wide configuration file for tomcat6 services
 | 
						|
# This will be sourced by tomcat6 and any secondary service
 | 
						|
# Values will be overridden by service-specific configuration
 | 
						|
# files in /etc/sysconfig
 | 
						|
#
 | 
						|
# Use this one to change default values for all services
 | 
						|
# Change the service specific ones to affect only one service
 | 
						|
# (see, for instance, /etc/sysconfig/tomcat6)
 | 
						|
#
 | 
						|
 | 
						|
# Where your java installation lives
 | 
						|
#JAVA_HOME="/usr/lib/jvm/java"
 | 
						|
 | 
						|
# Where your tomcat installation lives
 | 
						|
CATALINA_BASE="@MSENVIRON@"
 | 
						|
CATALINA_HOME="@MSENVIRON@"
 | 
						|
JASPER_HOME="@MSENVIRON@"
 | 
						|
CATALINA_TMPDIR="@MSENVIRON@/temp"
 | 
						|
 | 
						|
# You can pass some parameters to java here if you wish to
 | 
						|
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
 | 
						|
 | 
						|
# Use JAVA_OPTS to set java.library.path for libtcnative.so
 | 
						|
#JAVA_OPTS="-Djava.library.path=/usr/lib64"
 | 
						|
JAVA_OPTS="-Djava.awt.headless=true -Dcom.sun.management.jmxremote.port=45219 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=@MSLOGDIR@ -XX:PermSize=128M"
 | 
						|
 | 
						|
# What user should run tomcat
 | 
						|
TOMCAT_USER="@MSUSER@"
 | 
						|
# Do not remove the following line
 | 
						|
TOMCAT6_USER="$TOMCAT_USER"
 | 
						|
 | 
						|
TOMCAT_LOG="@MSLOGDIR@/catalina.out"
 | 
						|
 | 
						|
# You can change your tomcat locale here
 | 
						|
#LANG="en_US"
 | 
						|
 | 
						|
# Run tomcat under the Java Security Manager
 | 
						|
SECURITY_MANAGER="false"
 | 
						|
 | 
						|
# Time to wait in seconds, before killing process
 | 
						|
SHUTDOWN_WAIT="30"
 | 
						|
 | 
						|
# Whether to annoy the user with "attempting to shut down" messages or not
 | 
						|
SHUTDOWN_VERBOSE="false"
 | 
						|
 | 
						|
# Set the TOMCAT_PID location
 | 
						|
CATALINA_PID="@PIDDIR@/@PACKAGE@-management.pid"
 | 
						|
 | 
						|
# Connector port is 8080 for this tomcat6 instance
 | 
						|
#CONNECTOR_PORT="8080"
 | 
						|
 | 
						|
# We pick up the classpath in the next line
 | 
						|
 | 
						|
dummy=1 ; . @MSCONF@/classpath.conf
 |