Skip to content

Instantly share code, notes, and snippets.

@robbi5
Created August 12, 2018 10:01
Show Gist options
  • Save robbi5/4e1d0a3cb48898309c6975995073a293 to your computer and use it in GitHub Desktop.
Save robbi5/4e1d0a3cb48898309c6975995073a293 to your computer and use it in GitHub Desktop.
elasticsearch upstart config
description "elasticsearch"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn limit 10 5
limit nofile 65536 65536
limit nproc 4096 4096
env ES_HOME=/opt/elasticsearch
env ES_MIN_MEM=256m
env ES_MAX_MEM=4g
env ES_PATH_CONF="/opt/elasticsearch/config"
setuid elasticsearch
setgid elasticsearch
console log
script
/bin/bash /opt/elasticsearch/bin/elasticsearch
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment