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

standalone.bat restart EAP unexpectedly

    XMLWordPrintable

Details

    • 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

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: