Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-23309

The "stop" and "status" commands in the nexus startup script do not pass in nexus.vmoptions arguments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.21.2
    • Fix Version/s: None
    • Component/s: Bootstrap
    • Labels:
    • Notability:
      3

      Description

      The "stop" command in the "bin/nexus" script does not pass in "$INSTALL4J_ADD_VM_PARAMS".

      This prevents an override of the PID file location via the "install4j.pidDir" property from working.

      The command should be modified as follows:

          stop)
              echo "Shutting down nexus"
      
      $INSTALL4J_JAVA_PREFIX exec "$app_java_home/bin/java" -server -Dinstall4j.jvmDir="$app_java_home" -Dexe4j.moduleName="$prg_dir/$progname" $INSTALL4J_ADD_VM_PARAMS -classpath "$local_classpath" com.install4j.runtime.launcher.UnixLauncher stop
      return_code=$?
      

      This also affects "status", the workaround is the same, add the  $INSTALL4J_ADD_VM_PARAMS into the status command in the bin/nexus script.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Hardeep Nagra
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title