Sha256: 003b3e9380fa247099564d5ae99745bb9b4495236b3570f3b6ebf8e0a71d9dad

Contents?: true

Size: 585 Bytes

Versions: 46

Compression:

Stored size: 585 Bytes

Contents

<%
  @path = "/etc/init/elasticsearch.conf"
  @backup = false
%>
description "elasticsearch server"

start on runlevel [2345]
stop on runlevel [016]

script
  cd <%= rubber_env.elasticsearch_dir %>
  ulimit -n 65536
  exec ./bin/elasticsearch -f
end script

post-start script
  status elasticsearch | head -n1 | awk '{print $NF}' > <%= rubber_env.elasticsearch_pid_file %>
  while ! curl -s 'http://localhost:<%= rubber_env.elasticsearch_http_port %>/_status' > /dev/null 2>&1; do sleep 1 ; done
end script

post-stop script
  rm -f <%= rubber_env.elasticsearch_pid_file %>
end script

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
rubber-2.6.5 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.6.4 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.6.3 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.6.2 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.6.1 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.6.0 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.5.5 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.5.4 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.5.3 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.5.2 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.5.1 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.5.0 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.4.2 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.4.1 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.4.0 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.3.1 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.3.0 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.2.4 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.2.3 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.2.2 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf