knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kris...@apache.org
Subject [knox] branch master updated: KNOX-1849 - Start the Java process with 'exec' when running the app in foreground (#85)
Date Fri, 05 Apr 2019 14:08:36 GMT
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 <smolnar@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


Mime
View raw message