You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2014/12/27 16:46:01 UTC

jena git commit: JENA-612 : Catch stdout and stderr : This closes #13

Repository: jena
Updated Branches:
  refs/heads/master c0ef10f4d -> 03342b1aa


JENA-612 : Catch stdout and stderr : This closes #13


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

Branch: refs/heads/master
Commit: 03342b1aaf8a0b7cb33516aaf5aa24582e5ab6bd
Parents: c0ef10f
Author: Andy Seaborne <an...@apache.org>
Authored: Sat Dec 27 15:45:56 2014 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Sat Dec 27 15:45:56 2014 +0000

----------------------------------------------------------------------
 jena-fuseki/fuseki  | 2 +-
 jena-fuseki2/fuseki | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/03342b1a/jena-fuseki/fuseki
----------------------------------------------------------------------
diff --git a/jena-fuseki/fuseki b/jena-fuseki/fuseki
index 0dae10d..a4735a3 100755
--- a/jena-fuseki/fuseki
+++ b/jena-fuseki/fuseki
@@ -269,7 +269,7 @@ start() {
     then
       CH_USER="--chuid $FUSEKI_USER"
     fi
-    if start-stop-daemon --start $CH_USER --chdir "$FUSEKI_HOME" --background --make-pidfile --pidfile "$FUSEKI_PID" --startas "$JAVA" -- "${RUN_ARGS[@]}"
+    if start-stop-daemon --start $CH_USER --chdir "$FUSEKI_HOME" --background --make-pidfile --pidfile "$FUSEKI_PID" --startas /bin/bash -- -c "exec $JAVA ${RUN_ARGS[*]} > $FUSEKI_LOGS_STDERROUT 2>&1"
     then
       sleep 1
       if running "$FUSEKI_PID"

http://git-wip-us.apache.org/repos/asf/jena/blob/03342b1a/jena-fuseki2/fuseki
----------------------------------------------------------------------
diff --git a/jena-fuseki2/fuseki b/jena-fuseki2/fuseki
index 5e0ca07..9cc1fe8 100644
--- a/jena-fuseki2/fuseki
+++ b/jena-fuseki2/fuseki
@@ -333,7 +333,7 @@ start() {
     then
       CH_USER="--chuid $FUSEKI_USER"
     fi
-    if start-stop-daemon --start $CH_USER --chdir "$FUSEKI_HOME" --background --make-pidfile --pidfile "$FUSEKI_PID" --startas "$JAVA" -- "${RUN_ARGS[@]}"
+    if start-stop-daemon --start $CH_USER --chdir "$FUSEKI_HOME" --background --make-pidfile --pidfile "$FUSEKI_PID" --startas /bin/bash -- -c "exec $JAVA ${RUN_ARGS[*]} > $FUSEKI_LOGS_STDERROUT 2>&1"
     then
       sleep 2
       if running "$FUSEKI_PID"