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.2.1 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.2.0 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.1.2 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.1.1 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.1.0 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.8 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.7 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.6 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.5 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.4 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.3 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.2 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.1 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.0 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.0.pre12 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.0.pre11 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.0.pre10 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.0.pre9 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.0.pre8 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf
rubber-2.0.0.pre7 templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf