Created
October 24, 2014 03:42
-
-
Save xpe/9d14db8884bcf67f9388 to your computer and use it in GitHub Desktop.
Adjusts ulimit, as needed, and starts Riak on Mac OS X. Tested on Yosemite.
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
#!/usr/bin/env bash | |
MAXFILES=$(launchctl limit maxfiles | sed -e 's/[[:space:]]+/ /g' | xargs) | |
if [ "$MAXFILES" != "maxfiles 65536 65536" ]; then | |
set -x | |
sudo launchctl limit maxfiles 65536 65536 | |
fi | |
set -x | |
ulimit -n 65536 | |
riak start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment