Skip to content

Instantly share code, notes, and snippets.

@drewr
Created December 10, 2013 05:25
Show Gist options
  • Save drewr/7886104 to your computer and use it in GitHub Desktop.
Save drewr/7886104 to your computer and use it in GitHub Desktop.
Run Elasticsearch foregrounded on CentOS without any external daemontools or runit bins.
#!/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