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 2015/12/17 11:04:57 UTC
jena git commit: JENA-1099: Autocreate 'run' if using defaults
Repository: jena
Updated Branches:
refs/heads/master 9ab858400 -> 393f075c4
JENA-1099: Autocreate 'run' if using defaults
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/393f075c
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/393f075c
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/393f075c
Branch: refs/heads/master
Commit: 393f075c4be19453498ef9bc371028668cfe39a9
Parents: 9ab8584
Author: Andy Seaborne <an...@apache.org>
Authored: Thu Dec 17 10:04:42 2015 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Thu Dec 17 10:04:42 2015 +0000
----------------------------------------------------------------------
jena-fuseki2/apache-jena-fuseki/fuseki | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/393f075c/jena-fuseki2/apache-jena-fuseki/fuseki
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/fuseki b/jena-fuseki2/apache-jena-fuseki/fuseki
index ee0f219..f3f1666 100755
--- a/jena-fuseki2/apache-jena-fuseki/fuseki
+++ b/jena-fuseki2/apache-jena-fuseki/fuseki
@@ -194,7 +194,17 @@ fi
if [ -z "$FUSEKI_BASE" ]
then
#FUSEKI_BASE="/etc/fuseki"
- FUSEKI_BASE="$FUSEKI_HOME/run"
+ FUSEKI_BASE="$FUSEKI_HOME/run"
+ # Autocreate FUSEKI_BASE if defaulting to FUSEKI_HOME/run (simple deployment)
+ if [ ! -e "$FUSEKI_BASE" ]
+ then
+ log_daemon_msg "Creating '$FUSEKI_BASE'"
+ if [ "$cygwin" == "true" ]
+ then
+ FUSEKI_BASE=`cygpath -w "$FUSEKI_BASE"`
+ fi
+ mkdir "$FUSEKI_BASE"
+ fi
fi
if [ "$cygwin" == "true" ]
@@ -318,9 +328,10 @@ then
log_daemon_msg "JAVA_OPTIONS = ${JAVA_OPTIONS[*]}"
log_daemon_msg "RUN_ARGS = ${RUN_ARGS[@]}"
log_daemon_msg "RUN_CMD = ${RUN_CMD[@]}"
+ log_daemon_msg "Stdout/stderr = $FUSEKI_LOGS_STDERROUT"
fi
-NO_START=0
+NO_START=${NO_START:-0}
# Life cycle functions
start() {