Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4810

karaf.bat / status.bat do not exit with a proper exit code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.3
    • Fix Version/s: 4.1.0, 4.0.8
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      Windows

      Description

      The Windows Karaf batch file does not correctly set the exit code when terminating. It's required to propagate the %errorlevel% env var via a call to "exit /b %errorlevel%".

      We noticed that when programmatically checking the status.bat via a ProcessBuilder from Java. If you call that on a not running Karaf, you'll see that it's always "0" although %errorlevel% is set to "1"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                saschavogt Sascha Vogt
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: