Skip to content

Commit

Permalink
Update init scripts and configs to latest
Browse files Browse the repository at this point in the history
- Update init scripts for ES to latest shipped by packaging
- Update elastisearch.yml to latest shipped by packaging (with our modifications)

Fixes #461.
  • Loading branch information
martinb3 committed Jun 17, 2016
1 parent 278b830 commit e07a431
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions templates/amazon/initscript.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export ES_JAVA_OPTS
export ES_GC_LOG_FILE
export ES_STARTUP_SLEEP_TIME
export JAVA_HOME
export ES_INCLUDE

lockfile=/var/lock/subsys/$prog

Expand Down
1 change: 1 addition & 0 deletions templates/centos/initscript.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export ES_JAVA_OPTS
export ES_GC_LOG_FILE
export ES_STARTUP_SLEEP_TIME
export JAVA_HOME
export ES_INCLUDE

lockfile=/var/lock/subsys/$prog

Expand Down
3 changes: 2 additions & 1 deletion templates/debian/initscript.erb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export ES_DIRECT_SIZE
export ES_JAVA_OPTS
export ES_GC_LOG_FILE
export JAVA_HOME
export ES_INCLUDE

# Check DAEMON exists
test -x $DAEMON || exit 0
Expand Down Expand Up @@ -172,7 +173,7 @@ case "$1" in
i=0
timeout=10
# Wait for the process to be properly started before exiting
until { cat "$PID_FILE" | xargs kill -0; } >/dev/null 2>&1
until { kill -0 `cat "$PID_FILE"`; } >/dev/null 2>&1
do
sleep 1
i=$(($i + 1))
Expand Down
19 changes: 8 additions & 11 deletions templates/default/elasticsearch.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@
# THIS FILE IS MANAGED BY CHEF, DO NOT EDIT MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN!
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# See the source file for context and more information:
# <https://github.com/elastic/elasticsearch/blob/master/core/config/elasticsearch.yml>
# ======================== Elasticsearch Configuration =========================
#
# See the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# To set configurations not exposed by this template, set the `configuration`
# parameter in your `elasticsearch_configure` resource, as a hash of dotted keys
# and string values.
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# // ...
# 'threadpool.index.type' => 'fixed',
# 'threadpool.index.size' => '2'
# // ...
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
Expand Down
1 change: 1 addition & 0 deletions templates/oracle/initscript.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export ES_JAVA_OPTS
export ES_GC_LOG_FILE
export ES_STARTUP_SLEEP_TIME
export JAVA_HOME
export ES_INCLUDE

lockfile=/var/lock/subsys/$prog

Expand Down
1 change: 1 addition & 0 deletions templates/redhat/initscript.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export ES_JAVA_OPTS
export ES_GC_LOG_FILE
export ES_STARTUP_SLEEP_TIME
export JAVA_HOME
export ES_INCLUDE

lockfile=/var/lock/subsys/$prog

Expand Down
3 changes: 2 additions & 1 deletion templates/ubuntu/initscript.erb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export ES_DIRECT_SIZE
export ES_JAVA_OPTS
export ES_GC_LOG_FILE
export JAVA_HOME
export ES_INCLUDE

# Check DAEMON exists
test -x $DAEMON || exit 0
Expand Down Expand Up @@ -172,7 +173,7 @@ case "$1" in
i=0
timeout=10
# Wait for the process to be properly started before exiting
until { cat "$PID_FILE" | xargs kill -0; } >/dev/null 2>&1
until { kill -0 `cat "$PID_FILE"`; } >/dev/null 2>&1
do
sleep 1
i=$(($i + 1))
Expand Down

0 comments on commit e07a431

Please sign in to comment.