File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
modules/run/artifacts/opt/jboss/container/java/run Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -182,13 +182,6 @@ get_classpath() {
182
182
echo " ${cp_path} "
183
183
}
184
184
185
- # Set process name if possible
186
- get_exec_args () {
187
- if [ " x${JAVA_APP_NAME} " != x ]; then
188
- echo " -a '${JAVA_APP_NAME} '"
189
- fi
190
- }
191
-
192
185
# Start JVM
193
186
startup () {
194
187
# Initialize environment
@@ -201,8 +194,11 @@ startup() {
201
194
else
202
195
args=" -jar ${JAVA_APP_JAR} "
203
196
fi
204
- log_info " exec $( get_exec_args) java $( get_java_options) -cp \" $( get_classpath) \" ${args} $* "
205
- exec $( get_exec_args) java $( get_java_options) -cp " $( get_classpath) " ${args} $*
197
+
198
+ procname=" ${JAVA_APP_NAME-java} "
199
+
200
+ log_info " exec -a \" ${procname} \" java $( get_java_options) -cp \" $( get_classpath) \" ${args} $* "
201
+ exec -a " ${procname} " java $( get_java_options) -cp " $( get_classpath) " ${args} $*
206
202
}
207
203
208
204
# =============================================================================
You can’t perform that action at this time.
0 commit comments