You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sync setenv.sh settings with upstream 8.13.5 (LTS) (#357)
* Sync setenv.sh settings with upstream and reduce diff
This undeprecates $java_opts for backwards compatibility
and repurposes the other parameters to do what a custom $jvm_type
did previously.
It removes "-XX:HeapDumpOnOutOfMemoryError" because that's
not a default setting in the upstream setenv.sh
It also makes setting $jvm_permgen a no-op, since JIRA doesn't support
JDK older than 8 anymore and the option does nothing
* Add maintainer note about sticking close to upstream
deprecation('jira::poolsize', 'jira::poolsize is deprecated and simply sets max-pool-size. Please use jira::pool_max_size instead and remove this configuration')
fail("\$shared_homedir must be set when \$datacenter is true")
173
172
}
174
173
174
+
if$jvm_permgen {
175
+
fail('jira::jvm_permgen', 'jira::jvm_permgen has been removed and no longer does anything. Configuring it hasn\'t been supported since JDK 8')
176
+
}
177
+
175
178
if$enable_connection_pooling != undef {
176
179
deprecation('jira::enable_connection_pooling', 'jira::enable_connection_pooling has been removed and does nothing. Please simply configure the connection pooling parameters')
# The following 2 settings control the minimum and maximum given to the JIRA Java virtual machine. In larger JIRA instances, the maximum amount will need to be increased.
38
29
#
39
30
JVM_MINIMUM_MEMORY='<%= $jira::jvm_xms %>'
40
31
JVM_MAXIMUM_MEMORY='<%= $jira::jvm_xmx %>'
41
-
JVM_PERMGEN_MEMORY='<%= $jira::jvm_permgen %>'
42
32
43
33
#
44
34
# The following setting configures the size of JVM code cache. A high value of reserved size allows Jira to work with more installed apps.
echo "PermGen switch is NOT supported and will NOT be set automatically."
125
-
fi
126
-
fi
127
-
128
92
export JAVA_OPTS
129
93
130
94
# DO NOT remove the following line
131
95
# !INSTALLER SET JAVA_HOME
132
96
133
97
echo ""
134
-
echo "If you encounter issues starting or stopping Jira, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-0812/Troubleshooting+installation"
98
+
echo "If you encounter issues starting or stopping Jira, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-0813/Troubleshooting+installation"
135
99
echo ""
136
-
if [ -n "${JIRA_HOME_MINUSD}" ]; then
137
-
echo "Using JIRA_HOME: ${JIRA_HOME}"
100
+
if [ "$JIRA_HOME_MINUSD" != "" ]; then
101
+
echo "Using JIRA_HOME: $JIRA_HOME"
138
102
fi
139
103
140
104
# set the location of the pid file
141
-
if [ -z "${CATALINA_PID}" ] ; then
142
-
if [ -n "${CATALINA_HOME}" ] ; then
143
-
CATALINA_PID="${CATALINA_HOME}/work/catalina.pid"
144
-
elif [ -n "${CATALINA_HOME}" ] ; then
145
-
CATALINA_PID="${CATALINA_HOME}/work/catalina.pid"
105
+
if [ -z "$CATALINA_PID" ] ; then
106
+
if [ -n "$CATALINA_BASE" ] ; then
107
+
CATALINA_PID="$CATALINA_BASE"/work/catalina.pid
108
+
elif [ -n "$CATALINA_HOME" ] ; then
109
+
CATALINA_PID="$CATALINA_HOME"/work/catalina.pid
146
110
fi
147
111
fi
148
112
export CATALINA_PID
149
113
150
-
if [ -z "${CATALINA_HOME}" ]; then
151
-
if [ -z "${CATALINA_HOME}" ]; then
152
-
LOGBASE=${PRGDIR}
114
+
if [ -z "$CATALINA_BASE" ]; then
115
+
if [ -z "$CATALINA_HOME" ]; then
116
+
LOGBASE=$PRGDIR
153
117
LOGTAIL=..
154
118
else
155
-
LOGBASE=${CATALINA_HOME}
119
+
LOGBASE=$CATALINA_HOME
156
120
LOGTAIL=.
157
121
fi
158
122
else
159
-
LOGBASE=${CATALINA_BASE}
123
+
LOGBASE=$CATALINA_BASE
160
124
LOGTAIL=.
161
125
fi
162
126
163
-
PUSHED_DIR=$(pwd)
164
-
cd ${LOGBASE}
165
-
cd ${LOGTAIL}
166
-
LOGBASEABS=$(pwd)
167
-
cd ${PUSHED_DIR}
127
+
PUSHED_DIR=`pwd`
128
+
cd $LOGBASE
129
+
cd $LOGTAIL
130
+
LOGBASEABS=`pwd`
131
+
cd $PUSHED_DIR
168
132
169
133
echo ""
170
-
echo "Server startup logs are located in ${LOGBASEABS}/logs/catalina.out"
134
+
echo "Server startup logs are located in $LOGBASEABS/logs/catalina.out"
0 commit comments