Set ulimit highter for all users in prod install

This commit is contained in:
Stephan Oeste 2022-07-07 19:22:47 +02:00
parent 766eeb2a6f
commit b4bb54212c
No known key found for this signature in database
GPG Key ID: 3152347D07DA627C

View File

@ -1553,6 +1553,29 @@ case $OS in
;;
esac
##### OS set Linux user ulimits
echo "[*] Setting ulimits for users"
case $OS in
FreeBSD)
;;
Debian)
cat >> /etc/security/limits.conf <<EOF
* soft nproc 200000
* hard nproc 200000
* soft nofile 200000
* hard nofile 200000
EOF
echo "session required pam_limits.so" >> /etc/pam.d/common-session
;;
esac
##### OS services
#if [ "${BITCOIN_MAINNET_ENABLE}" = ON ];then
@ -1628,6 +1651,8 @@ esac
##### finish
echo 'Please reboot to start all the services.'
echo '[*] Done!'
exit 0