From e8a9374ff50eccf04705377207abc82c4e6d24ca Mon Sep 17 00:00:00 2001 From: phahulin Date: Fri, 27 Oct 2017 17:44:19 +0300 Subject: [PATCH] Update install.sh --- TestTestNet/netstats-server/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TestTestNet/netstats-server/install.sh b/TestTestNet/netstats-server/install.sh index fc8880c..73e4248 100644 --- a/TestTestNet/netstats-server/install.sh +++ b/TestTestNet/netstats-server/install.sh @@ -126,6 +126,11 @@ prepare_homedir() { echo "<===== prepare_homedir" } +increase_ulimit_n() { + echo "${ADMIN_USERNAME} soft nofile 100000" | sudo tee /etc/security/limits.conf > /dev/null + echo "${ADMIN_USERNAME} hard nofile 100000" | sudo tee /etc/security/limits.conf > /dev/null +} + install_ntpd() { echo "=====> install_ntpd" sudo timedatectl set-ntp no @@ -434,6 +439,7 @@ main () { sudo apt-get update prepare_homedir + increase_ulimit_n install_ntpd install_haveged allocate_swap