karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sascha Vogt (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-4810) karaf.bat / status.bat do not exit with a proper exit code
Date Mon, 31 Oct 2016 10:49:58 GMT
Sascha Vogt created KARAF-4810:
----------------------------------

             Summary: karaf.bat / status.bat do not exit with a proper exit code
                 Key: KARAF-4810
                 URL: https://issues.apache.org/jira/browse/KARAF-4810
             Project: Karaf
          Issue Type: Bug
          Components: karaf-os-integration
    Affects Versions: 4.0.3
         Environment: Windows
            Reporter: Sascha Vogt


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"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message