Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is SystemD's default value for LimitNOFILE (on CentOS7)

It seems like a very easy question but I couldn't find, what the default for services in SystemD for LimitNOFILE is.

Is there a file with global defaults?

like image 965
Martin Rauscher Avatar asked Dec 17 '15 19:12

Martin Rauscher


Video Answer


2 Answers

systemd imposes no such limit by default. however pam_limits generally does, configuration file is /etc/security/limits.conf

like image 176
Cristian Rodriguez Avatar answered Nov 11 '22 18:11

Cristian Rodriguez


#/etc/security/limits.conf
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#if your program startup via systemctl
#config /etc/systemd/system.conf
DefaultLimitNOFILE=
like image 44
hello-world Avatar answered Nov 11 '22 19:11

hello-world