Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12423

[7.0.z] standalone.bat restart EAP unexpectedly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.0.7.GA, 7.1.0.ER2
    • Scripts
    • 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
    • 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)

      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
              jbilek@redhat.com Jiří Bílek (Inactive)
              Jiří Bílek Jiří Bílek (Inactive)
              Jiří Bílek Jiří Bílek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: