删除set_limits.conf.sh中无用的行

由于默认的栈大小就是8192所以
	删除冗余行
This commit is contained in:
Jinnan Wang
2014-03-18 17:00:40 +08:00
parent 9588a21091
commit 23a3d8d247

View File

@@ -3,18 +3,6 @@
. ./check_function.sh
LIMIT_CONFIG=/etc/security/limits.conf
# set limits.conf
grep -v ^# $LIMIT_CONFIG | grep stack | grep 16384 | grep hard &>/dev/null
if [ $? -eq 1 ];then
echo "* soft stack 8192" >> $LIMIT_CONFIG
echo "* hard stack 8192" >> $LIMIT_CONFIG
elif [ $? -eq 0 ];then
exit 0
fi
#本脚本更改同时打开文件数的限制为65536