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
					
				| @ -1556,6 +1556,29 @@ case $OS in | |||||||
|     ;; |     ;; | ||||||
| esac | 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 | ##### OS services | ||||||
| 
 | 
 | ||||||
| #if [ "${BITCOIN_MAINNET_ENABLE}" = ON ];then | #if [ "${BITCOIN_MAINNET_ENABLE}" = ON ];then | ||||||
| @ -1631,6 +1654,8 @@ esac | |||||||
| 
 | 
 | ||||||
| ##### finish | ##### finish | ||||||
| 
 | 
 | ||||||
|  | echo 'Please reboot to start all the services.' | ||||||
|  | 
 | ||||||
| echo '[*] Done!' | echo '[*] Done!' | ||||||
| 
 | 
 | ||||||
| exit 0 | exit 0 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user