Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3086

standalone.bat restart EAP unexpectedly

XMLWordPrintable

    • Hide
      • Reported case
      • When the OS shutting down during EAP is still running. (exit code 143)
      • Shutting down with Ctrl+C and answering No for question of "Terminate batch job <Y/N>?". (exit code 130)
      Show
      Reported case When the OS shutting down during EAP is still running. (exit code 143) Shutting down with Ctrl+C and answering No for question of "Terminate batch job <Y/N>?". (exit code 130)
    • Hide

      change the IF statament in standalone.bat/domain.bat as follows.

      if %ERRORLEVEL%==10 goto RESTART
      or
      if %ERRORLEVEL% EQU 10 goto RESTART

      Show
      change the IF statament in standalone.bat/domain.bat as follows. if %ERRORLEVEL%==10 goto RESTART or if %ERRORLEVEL% EQU 10 goto RESTART

      Description of problem:

      By the following code in standalone.bat, domain.bat, EAP restarts unexpectedly when the ERRORLEVEL set more than 10.
      > if ERRORLEVEL 10 goto RESTART

      For example, when Shutting down Windows while EAP is running, exit code is set as 143 and EAP is restarted.
      Originally, EAP expect 10 for restarting.
      The value is defined as the following constant.
      org.jboss.as.process.ExitCodes.RESTART_PROCESS_FROM_STARTUP_SCRIPT

      Version-Release number of selected component (if applicable):
      6.x, 7.x

              rstancel@redhat.com Radovan Stancel
              rstancel@redhat.com Radovan Stancel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: