Skip to content

Instantly share code, notes, and snippets.

@siriusfinex
Last active February 28, 2019 14:18
Show Gist options
  • Save siriusfinex/e8604a512b0c5c711d6216679b099c79 to your computer and use it in GitHub Desktop.
Save siriusfinex/e8604a512b0c5c711d6216679b099c79 to your computer and use it in GitHub Desktop.
#! /bin/bash
cat /etc/security/limits.conf | grep "\*\ soft\ nofile\ 51200" || echo "* soft nofile 51200
* hard nofile 51200" >> /etc/security/limits.conf ; ulimit -n 51200 && supervisorctl restart ssmgr-tiny
#check ulimit setting is right
cat /etc/security/limits.conf || echo "---fail---" ; echo "---line---" ; ulimit -n | grep 51200 || echo "---fail---"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment