| # 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. | |
| # Required for a tocmat cloned service | |
| SERVICE_NAME=cloudstack-management | |
| # Where your java installation lives | |
| #JAVA_HOME="/usr/lib/jvm/java" | |
| # Where your cloudstack-management installation lives | |
| CATALINA_BASE="/usr/share/cloudstack-management" | |
| CATALINA_HOME="/usr/share/cloudstack-management" | |
| JASPER_HOME="/usr/share/cloudstack-management" | |
| CATALINA_TMPDIR="/usr/share/cloudstack-management/temp" | |
| if [ -r "/etc/cloudstack/management/cloudmanagementserver.keystore" ] ; then | |
| JAVA_OPTS="-Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:PermSize=512M -XX:MaxPermSize=800m -Djavax.net.ssl.trustStore=/etc/cloudstack/management/cloudmanagementserver.keystore -Djavax.net.ssl.trustStorePassword=vmops.com " | |
| else | |
| JAVA_OPTS="-Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:PermSize=512M -XX:MaxPermSize=800m" | |
| fi | |
| TOMCAT_USER="cloud" | |
| SECURITY_MANAGER="false" | |
| SHUTDOWN_WAIT="30" | |
| SHUTDOWN_VERBOSE="false" | |
| # Set the TOMCAT_PID location | |
| CATALINA_PID="/var/run/cloudstack-management.pid" | |
| CLASSPATH=/etc/cloudstack/management:/usr/share/cloudstack-common:/usr/share/cloudstack-management/setup | |