From e0c7d46c14ee27aa43525ff458967b4034d0f31d Mon Sep 17 00:00:00 2001
From: phahulin
Date: Fri, 27 Oct 2017 17:43:27 +0300
Subject: [PATCH] Update install.sh
---
TestTestNet/mining-node/install.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/TestTestNet/mining-node/install.sh b/TestTestNet/mining-node/install.sh
index 4ae76c5..7868a60 100644
--- a/TestTestNet/mining-node/install.sh
+++ b/TestTestNet/mining-node/install.sh
@@ -105,6 +105,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
@@ -345,7 +350,7 @@ main () {
sudo apt-get update
prepare_homedir
-
+ increase_ulimit_n
install_ntpd
install_haveged
allocate_swap