Skip to content

Instantly share code, notes, and snippets.

@dmyung
Created October 26, 2012 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmyung/3961323 to your computer and use it in GitHub Desktop.
Save dmyung/3961323 to your computer and use it in GitHub Desktop.
Elastisearch Upstart Configuration
# ElasticSearch Service
description "ElasticSearch"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn limit 10 5
env ES_HOME=/opt/elasticsearch/
env ES_MIN_MEM=256m
env ES_MAX_MEM=768m
env DAEMON="${ES_HOME}/bin/elasticsearch"
env DATA_DIR=/opt/data/elasticsearch/data #optional if not in your configuration
console output
script
su -s /bin/dash -c "/opt/elasticsearch/bin/elasticsearch -f" elasticsearch
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment