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