You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/09 22:39:11 UTC

[jira] [Commented] (KARAF-4091) Support restarting the Karaf JVM and updating it's lib directory

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

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

GitHub user chirino opened a pull request:

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

    Fixes KARAF-4091: Support restarting the Karaf JVM and updating it's …

    …lib directory
    
    The karaf.restart.jvm.supported=true system property will be set if restarting the JVM is supported.  If karaf is shutdown and the karaf.restart.jvm=true system property is set, then karaf will exit with error code = 10.  The shell scripts will check for this error code and restart Karaf.
    
    On unix, sometimes it's desirable to give up this feature so that the JVM process can be 'exec'ed by the shell script for simpler process management (For example if your running in a Docker container).  In these cases you can set the KARAF_EXEC=exec env var to return to the current behavior of using exec to launch the java process.

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

    $ git pull https://github.com/chirino/karaf-1 KARAF-4091

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

    https://github.com/apache/karaf/pull/91.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 #91
    
----
commit 4d049857b059ff00b218875907ff163eecffed61
Author: Hiram Chirino <hi...@hiramchirino.com>
Date:   2015-11-09T21:00:16Z

    Fixes KARAF-4091: Support restarting the Karaf JVM and updating it's lib directory
    
    The karaf.restart.jvm.supported=true system property will be set if restarting the JVM is supported.  If karaf is shutdown and the karaf.restart.jvm=true system property is set, then karaf will exit with error code = 10.  The shell scripts will check for this error code and restart Karaf.
    
    On unix, sometimes it's desirable to give up this feature so that the JVM process can be 'exec'ed by the shell script for simpler process management (For example if your running in a Docker container).  In these cases you can set the KARAF_EXEC=exec env var to return to the current behavior of using exec to launch the java process.

----


> Support restarting the Karaf JVM and updating it's lib directory
> ----------------------------------------------------------------
>
>                 Key: KARAF-4091
>                 URL: https://issues.apache.org/jira/browse/KARAF-4091
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: 4.1.0
>
>




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