合并limits.conf文件相关的配置

删除set_kernel.sh文件,并将其内容并入set_limits.conf.sh
	移除set_kernel.sh的调用
This commit is contained in:
Jinnan Wang
2014-03-18 09:16:55 +08:00
parent fd80cd8766
commit 2bfa7cafee
3 changed files with 17 additions and 21 deletions

View File

@@ -1,18 +0,0 @@
#!/bin/bash
# Parallel computing patch
. ./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

View File

@@ -1,5 +1,22 @@
#!/bin/bash
. ./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
ROOT_UID=0

View File

@@ -19,9 +19,6 @@ fi
./set_network.sh
echo "====Set Bonding..."
./set_kernel.sh
echo "====Set Kernel parameters..."
./set_ssh.sh $1 $2 $3
echo "====Set ssh...."