mirror of
https://github.com/mempool/mempool.git
synced 2025-02-22 22:25:34 +01:00
Merge pull request #2013 from Emzy/ops/set-user-ulimit
Set ulimit highter for all users in prod install
This commit is contained in:
commit
41f0619572
1 changed files with 25 additions and 0 deletions
|
@ -1556,6 +1556,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
|
||||
|
@ -1631,6 +1654,8 @@ esac
|
|||
|
||||
##### finish
|
||||
|
||||
echo 'Please reboot to start all the services.'
|
||||
|
||||
echo '[*] Done!'
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue