Created
August 12, 2018 10:01
-
-
Save robbi5/4e1d0a3cb48898309c6975995073a293 to your computer and use it in GitHub Desktop.
elasticsearch upstart config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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