Last active
February 28, 2019 14:18
-
-
Save siriusfinex/e8604a512b0c5c711d6216679b099c79 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
#! /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