Uploaded image for project: 'OpenJDK'
  1. OpenJDK
  2. OPENJDK-558

add support for JAVA_PROCESS_NAME to run-java-sh

XMLWordPrintable

    • Icon: Component Upgrade Component Upgrade
    • Resolution: Done
    • Icon: Minor Minor
    • Containers 1.12.GA
    • None
    • container
    • None

      The idea is, if specified, JAVA_PROCESS_NAME environment variable is specified by the user, the run-java.sh script passes the value as an argument to the final `exec` as a parameter to `-a`, e.g. exec -a "desired process name". If JAVA_PROCESS_NAME is not specified, then the default should be left as "java". This could probably be achieved with bash substring expansion, something like (untested)

      exec -a "${JAVA_PROCESS_NAME:-java}" ...

              jhuttana1@redhat.com Jayashree Huttanagoudar
              jdowland@redhat.com Jonathan Dowland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: