[ 
https://issues.apache.org/jira/browse/KARAF-4810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15622067#comment-15622067
 ] 

ASF GitHub Bot commented on KARAF-4810:
---------------------------------------

GitHub user svogt opened a pull request:

    https://github.com/apache/karaf/pull/261

    [KARAF-4810] Exit karaf.bat with a proper exit code

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/svogt/karaf KARAF-4810

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/261.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #261
    
----
commit 33d001fa85ed78bb0eef304348d77e34094bee34
Author: Sascha Vogt <[email protected]>
Date:   2016-10-31T10:59:00Z

    [KARAF-4810] Exit karaf.bat with a proper exit code

----


> 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)

Reply via email to