diff --git a/bin/elasticsearch.bat b/bin/elasticsearch.bat index 588b7036a20..e8c2e239689 100644 --- a/bin/elasticsearch.bat +++ b/bin/elasticsearch.bat @@ -48,9 +48,9 @@ REM space for a full heap dump. REM JAVA_OPTS=%JAVA_OPTS% -XX:HeapDumpPath=$ES_HOME/logs/heapdump.hprof set ES_CLASSPATH=%ES_CLASSPATH%;%ES_HOME%/lib/*;%ES_HOME%/lib/sigar/* -set ES_PARAMS=-Delasticsearch -Des-foreground=yes -Des.path.home="%ES_HOME%" %* +set ES_PARAMS=-Delasticsearch -Des-foreground=yes -Des.path.home="%ES_HOME%" -"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.ElasticSearch" +"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% "%*" -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.ElasticSearch" goto finally