Apache Lucene open-source search software
SOLR-5129: Add support for changing flag in bin/solr
Cao Manh Dat2bc2759bf47a
diff --git a/solr/bin/solr b/solr/bin/solrindex bc2abcadfa9..dd8d6efa21b 100755--- a/solr/bin/solr+++ b/solr/bin/solr@@ -1919,6 +1919,10 @@ function launch_solr() {GC_TUNE=($GC_TUNE)fi+ if [ -n "$SOLR_WAIT_FOR_ZK" ]; then+ WAIT_FOR_ZK_PROP="-DwaitForZk=$SOLR_WAIT_FOR_ZK"+ SOLR_OPTS+=($WAIT_FOR_ZK_PROP)+ fi# If SSL-related system props are set, add them to SOLR_OPTSif [ "$SOLR_SSL_ENABLED" ]; thendiff --git a/solr/bin/solr.in.cmd b/solr/bin/solr.in.cmdindex afba4f75ab5..bfb33e0e9d3 100644--- a/solr/bin/solr.in.cmd+++ b/solr/bin/solr.in.cmd@@ -48,6 +48,9 @@ REM By default the start script uses "localhost"; override the hostname hereREM for production SolrCloud environments to control the hostname exposed to cluster stateREM set SOLR_HOST=192.168.1.1+REM By default Solr will try to connect to Zookeeper with 30 seconds in timeout; override the timeout if needed+REM set SOLR_WAIT_FOR_ZK=30+REM By default the start script uses UTC; override the timezone if neededREM set SOLR_TIMEZONE=UTCdiff --git a/solr/bin/solr.in.sh b/solr/bin/solr.in.shindex 514efb1ad9d..10d8b902e35 100644--- a/solr/bin/solr.in.sh+++ b/solr/bin/solr.in.sh@@ -60,6 +60,9 @@# for production SolrCloud environments to control the hostname exposed to cluster state#SOLR_HOST="192.168.1.1"+# By default Solr will try to connect to Zookeeper with 30 seconds in timeout; override the timeout if needed+#SOLR_WAIT_FOR_ZK="30"+# By default the start script uses UTC; override the timezone if needed#SOLR_TIMEZONE="UTC"