Created
December 10, 2013 05:25
-
-
Save drewr/7886104 to your computer and use it in GitHub Desktop.
Run Elasticsearch foregrounded on CentOS without any external daemontools or runit bins.
This file contains 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
#!/bin/sh | |
ulimit -l unlimited | |
ulimit -n unlimited | |
CLUSTER=amex | |
NODE=node01 | |
export ES_HEAP_SIZE=24g | |
exec runuser -s /bin/sh - nobody -g nobody \ | |
-c " | |
bin/elasticsearch -f \ | |
-Des.cluster.name=$CLUSTER \ | |
-Des.node.name=$NODE | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment