Skip to content

Instantly share code, notes, and snippets.

@masahitojp
Last active August 29, 2015 13:56
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 masahitojp/9322185 to your computer and use it in GitHub Desktop.
Save masahitojp/9322185 to your computer and use it in GitHub Desktop.
オープンファイル数を変更するfabricスクリプト
from fabric.contrib import files
__author__ = "@Masahito"
__license__ = "MIT"
# nofileをupdate
#
# example)
# fab -H localhost update_nofile
def update_nofile():
str = """
* soft nofile 20480
* hard nofile 20480
"""
files.append('/etc/security/limits.conf', str, use_sudo=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment