jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject jena git commit: JENA-1219: Pass FUSEKI_HOME and FUSEKI_BASE in su process
Date Sat, 06 Aug 2016 14:30:59 GMT
Repository: jena
Updated Branches:
  refs/heads/master 67354f9f2 -> d2dd37ec0


JENA-1219: Pass FUSEKI_HOME and FUSEKI_BASE in su process


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/d2dd37ec
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/d2dd37ec
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/d2dd37ec

Branch: refs/heads/master
Commit: d2dd37ec0a0617fca8e990e5184ac147cdf5172a
Parents: 67354f9
Author: Andy Seaborne <andy@apache.org>
Authored: Sat Aug 6 15:30:40 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat Aug 6 15:30:40 2016 +0100

----------------------------------------------------------------------
 jena-fuseki2/apache-jena-fuseki/fuseki | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/d2dd37ec/jena-fuseki2/apache-jena-fuseki/fuseki
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/fuseki b/jena-fuseki2/apache-jena-fuseki/fuseki
index f56064d..2ce30e2 100755
--- a/jena-fuseki2/apache-jena-fuseki/fuseki
+++ b/jena-fuseki2/apache-jena-fuseki/fuseki
@@ -396,7 +396,10 @@ start() {
 ##       then
 ## 	  log_daemon_msg "Redirecting Fuseki stderr/stdout to $FUSEKI_LOGS_STDERROUT"
 ##       fi
+      ## su with login, passing over environment variables.
       su - "$FUSEKI_USER" -c "
+        export FUSEKI_BASE='${FUSEKI_BASE}'
+        export FUSEKI_HOME='${FUSEKI_HOME}'
         exec ${RUN_CMD[*]} &> '$FUSEKI_LOGS_STDERROUT' &
         disown \$!
         echo \$! > '$FUSEKI_PID'"


Mime
View raw message