Created
March 31, 2012 18:31
-
-
Save bretthoerner/2267403 to your computer and use it in GitHub Desktop.
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
# system config | |
script "increase nofiles to 300k" do | |
interpreter "bash" | |
flags "-e" | |
user "root" | |
creates "/etc/security/limits.d/nofiles.conf" | |
code <<-EOH | |
echo "* hard nofile 300000" >> /etc/security/limits.d/nofiles.conf | |
echo "* soft nofile 300000" >> /etc/security/limits.d/nofiles.conf | |
echo "root hard nofile 300000" >> /etc/security/limits.d/nofiles.conf | |
echo "root soft nofile 300000" >> /etc/security/limits.d/nofiles.conf | |
EOH | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment