|
@@ -14,33 +14,6 @@
|
|
|
# commented out. Sample format include "512m", and "10g".
|
|
|
#
|
|
|
# ES_JAVA_OPTS="-Xms8g -Xmx8g" ./bin/elasticsearch
|
|
|
-#
|
|
|
-# As a convenience, a fragment of shell is sourced in order to set one or
|
|
|
-# more of these variables. This so-called `include' can be placed in a
|
|
|
-# number of locations and will be searched for in order. The lowest
|
|
|
-# priority search path is the same directory as the startup script, and
|
|
|
-# since this is the location of the sample in the project tree, it should
|
|
|
-# almost work Out Of The Box.
|
|
|
-#
|
|
|
-# Any serious use-case though will likely require customization of the
|
|
|
-# include. For production installations, it is recommended that you copy
|
|
|
-# the sample to one of /usr/share/elasticsearch/elasticsearch.in.sh,
|
|
|
-# /usr/local/share/elasticsearch/elasticsearch.in.sh, or
|
|
|
-# /opt/elasticsearch/elasticsearch.in.sh and make your modifications there.
|
|
|
-#
|
|
|
-# Another option is to specify the full path to the include file in the
|
|
|
-# environment. For example:
|
|
|
-#
|
|
|
-# $ ES_INCLUDE=/path/to/in.sh elasticsearch -p /var/run/es.pid
|
|
|
-#
|
|
|
-# Note: This is particularly handy for running multiple instances on a
|
|
|
-# single installation, or for quick tests.
|
|
|
-#
|
|
|
-# If you would rather configure startup entirely from the environment, you
|
|
|
-# can disable the include by exporting an empty ES_INCLUDE, or by
|
|
|
-# ensuring that no include files exist in the aforementioned search list.
|
|
|
-# Be aware that you will be entirely responsible for populating the needed
|
|
|
-# environment variables.
|
|
|
|
|
|
# Check to see if you are trying to run this without building it first. Gradle
|
|
|
# will replace the project.name with _something_.
|
|
@@ -89,24 +62,7 @@ fi
|
|
|
|
|
|
ES_JAVA_OPTS="$(parse_jvm_options "$ES_JVM_OPTIONS") $ES_JAVA_OPTS"
|
|
|
|
|
|
-# If an include wasn't specified in the environment, then search for one...
|
|
|
-if [ "x$ES_INCLUDE" = "x" ]; then
|
|
|
- # Locations (in order) to use when searching for an include file.
|
|
|
- for include in /usr/share/elasticsearch/elasticsearch.in.sh \
|
|
|
- /usr/local/share/elasticsearch/elasticsearch.in.sh \
|
|
|
- /opt/elasticsearch/elasticsearch.in.sh \
|
|
|
- ~/.elasticsearch.in.sh \
|
|
|
- "$ES_HOME/bin/elasticsearch.in.sh" \
|
|
|
- "`dirname "$0"`"/elasticsearch.in.sh; do
|
|
|
- if [ -r "$include" ]; then
|
|
|
- . "$include"
|
|
|
- break
|
|
|
- fi
|
|
|
- done
|
|
|
-# ...otherwise, source the specified include.
|
|
|
-elif [ -r "$ES_INCLUDE" ]; then
|
|
|
- . "$ES_INCLUDE"
|
|
|
-fi
|
|
|
+source "$ES_HOME/bin/elasticsearch.in.sh"
|
|
|
|
|
|
if [ -x "$JAVA_HOME/bin/java" ]; then
|
|
|
JAVA="$JAVA_HOME/bin/java"
|