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 @@ -195,13 +195,6 @@ get_classpath() {
195
195
echo " ${cp_path} "
196
196
}
197
197
198
- # Set process name if possible
199
- get_exec_args () {
200
- if [ " x${JAVA_APP_NAME} " != x ]; then
201
- echo " -a '${JAVA_APP_NAME} '"
202
- fi
203
- }
204
-
205
198
# Ensure that the running UID has the "jboss" passwd metadata
206
199
# XXX: Maybe we should make this an entrypoint for the image?
207
200
function configure_passwd() {
@@ -226,8 +219,11 @@ startup() {
226
219
else
227
220
args=" -jar ${JAVA_APP_JAR} "
228
221
fi
229
- log_info " exec $( get_exec_args) java $( get_java_options) -cp \" $( get_classpath) \" ${args} $* "
230
- exec $( get_exec_args) java $( get_java_options) -cp " $( get_classpath) " ${args} $*
222
+
223
+ procname=" ${JAVA_APP_NAME-java} "
224
+
225
+ log_info " exec -a \" ${procname} \" java $( get_java_options) -cp \" $( get_classpath) \" ${args} $* "
226
+ exec -a " ${procname} " java $( get_java_options) -cp " $( get_classpath) " ${args} $*
231
227
}
232
228
233
229
# =============================================================================
You can’t perform that action at this time.
0 commit comments