Skip to content

Commit

Permalink
updated ES conf path in start-up script
Browse files Browse the repository at this point in the history
  • Loading branch information
spujadas committed Nov 14, 2017
1 parent edbea87 commit 89481a6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,10 @@ if [ "$LOGSTASH_START" -ne "1" ]; then
else
# override LS_HEAP_SIZE variable if set
if [ ! -z "$LS_HEAP_SIZE" ]; then
awk -v LINE="-Xmx$LS_HEAP_SIZE" '{ sub(/^.Xmx.*/, LINE); print; }' /opt/logstash/config/jvm.options \
> /opt/logstash/config/jvm.options.new && mv /opt/logstash/config/jvm.options.new /opt/logstash/config/jvm.options
awk -v LINE="-Xms$LS_HEAP_SIZE" '{ sub(/^.Xms.*/, LINE); print; }' /opt/logstash/config/jvm.options \
> /opt/logstash/config/jvm.options.new && mv /opt/logstash/config/jvm.options.new /opt/logstash/config/jvm.options
cp -f /opt/logstash/config/jvm.options /etc/logstash/jvm.options
awk -v LINE="-Xmx$LS_HEAP_SIZE" '{ sub(/^.Xmx.*/, LINE); print; }' ${ES_PATH_CONF}/jvm.options \
> ${ES_PATH_CONF}/jvm.options.new && mv ${ES_PATH_CONF}/jvm.options.new ${ES_PATH_CONF}/jvm.options
awk -v LINE="-Xms$LS_HEAP_SIZE" '{ sub(/^.Xms.*/, LINE); print; }' ${ES_PATH_CONF}/jvm.options \
> ${ES_PATH_CONF}/jvm.options.new && mv ${ES_PATH_CONF}/jvm.options.new ${ES_PATH_CONF}/jvm.options
fi

# override LS_OPTS variable if set
Expand Down

0 comments on commit 89481a6

Please sign in to comment.