Smalyshev has uploaded a new change for review. https://gerrit.wikimedia.org/r/307868
Change subject: Make config file path configurable ...................................................................... Make config file path configurable Bug: T144380 Change-Id: I9809443921a1b1717be47e3c0c8fb1628ce238a7 --- M dist/src/script/runBlazegraph.sh 1 file changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/rdf refs/changes/68/307868/1 diff --git a/dist/src/script/runBlazegraph.sh b/dist/src/script/runBlazegraph.sh index c383997..a6b8ce4 100755 --- a/dist/src/script/runBlazegraph.sh +++ b/dist/src/script/runBlazegraph.sh @@ -6,13 +6,14 @@ DIR=`dirname $0` MEMORY=-Xmx8g BLAZEGRAPH_OPTS="" +CONFIG_FILE=RWStore.properties function usage() { - echo "Usage: $0 [-h <host>] [-d <dir>] [-c <context>] [-p <port>] [-o <blazegraph options>] " + echo "Usage: $0 [-h <host>] [-d <dir>] [-c <context>] [-p <port>] [-o <blazegraph options>] [-f config.properties]" exit 1 } -while getopts h:c:p:d:o:? option +while getopts h:c:p:d:o:f:? option do case "${option}" in @@ -21,6 +22,7 @@ p) PORT=${OPTARG};; d) DIR=${OPTARG};; o) BLAZEGRAPH_OPTS="${OPTARG}";; + f) CONFIG_FILE=${OPTARG};; ?) usage;; esac done @@ -31,7 +33,7 @@ DEFAULT_GLOBE=2 echo "Running Blazegraph from `pwd` on :$PORT/$CONTEXT" -java -server -XX:+UseG1GC ${MEMORY} -Dcom.bigdata.rdf.sail.webapp.ConfigParams.propertyFile=RWStore.properties \ +java -server -XX:+UseG1GC ${MEMORY} -Dcom.bigdata.rdf.sail.webapp.ConfigParams.propertyFile=${CONFIG_FILE} \ -Dorg.eclipse.jetty.server.Request.maxFormContentSize=200000000 \ -Dcom.bigdata.rdf.sparql.ast.QueryHints.analytic=true \ -Dcom.bigdata.rdf.sparql.ast.QueryHints.analyticMaxMemoryPerQuery=1073741824 \ -- To view, visit https://gerrit.wikimedia.org/r/307868 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9809443921a1b1717be47e3c0c8fb1628ce238a7 Gerrit-PatchSet: 1 Gerrit-Project: wikidata/query/rdf Gerrit-Branch: master Gerrit-Owner: Smalyshev <smalys...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits