Skip to content

Instantly share code, notes, and snippets.

@bretthoerner
Created March 31, 2012 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bretthoerner/2267403 to your computer and use it in GitHub Desktop.
Save bretthoerner/2267403 to your computer and use it in GitHub Desktop.
# 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