You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by kr...@apache.org on 2019/04/05 14:08:36 UTC

[knox] branch master updated: KNOX-1849 - Start the Java process with 'exec' when running the app in foreground (#85)

This is an automated email from the ASF dual-hosted git repository.

krisden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new 1bdc629  KNOX-1849 - Start the Java process with 'exec' when running the app in foreground (#85)
1bdc629 is described below

commit 1bdc62975880e1d7e448ea24c3cea3f214928d6f
Author: Sandor Molnar <sm...@apache.org>
AuthorDate: Fri Apr 5 16:08:31 2019 +0200

    KNOX-1849 - Start the Java process with 'exec' when running the app in foreground (#85)
---
 gateway-release-common/home/bin/knox-functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gateway-release-common/home/bin/knox-functions.sh b/gateway-release-common/home/bin/knox-functions.sh
index ea38492..c394775 100644
--- a/gateway-release-common/home/bin/knox-functions.sh
+++ b/gateway-release-common/home/bin/knox-functions.sh
@@ -163,7 +163,7 @@ function getPID {
 
 function appStart {
    if [ "$APP_RUNNING_IN_FOREGROUND" == true ]; then
-      $JAVA $APP_JAVA_OPTS -jar $APP_JAR $@
+      exec $JAVA $APP_JAVA_OPTS -jar $APP_JAR $@
    else
       getPID
       if [ $? -eq 0 ]; then