Created
July 20, 2012 01:42
-
-
Save mrrooijen/3148139 to your computer and use it in GitHub Desktop.
ulimit hell.
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
# /etc/security/limits.conf | |
root - nofile 65000 | |
deployer - nofile 65000 | |
# Ubuntu upstart file at /etc/init/mongodb.conf | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
script | |
ulimit -n 65000 | |
exec su - root -c "/etc/mongodb/bin/mongod --port '27017' --dbpath '/home/deployer/mongodb/db/mongodb27017' --journal" >> '/home/deployer/mongodb/log/mongodb27017.log' 2>&1 | |
end script | |
# For /etc/init.d/<script> just add the following somewhere: | |
ulimit -n 65000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment