Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-9335

Errors in windows service.bat error handling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 6.1.0
    • 6.0.0.Final
    • Other
    • None

      service.bat
      The errorlevel handling in the service.bat script is incorrect causing misleading error messages.
      The syntax:
      if errorlevel 1
      is used meaning "if errorlevel == 1", when it actual means "if errorlevel >= 1". The syntax that should be used is:
      if %errorlevel% EQU 1

              smcgowan@redhat.com Shelly McGowan (Inactive)
              sgparry Stephen Parry (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: