Default Limit of open files

General support questions
Post Reply
simon@bp
Posts: 44
Joined: 2014/07/31 20:00:37

Default Limit of open files

Post by simon@bp » 2022/08/28 03:36:58

I am trying to get a daemon running under the control of SystemD. However, it keeps dying with an error message that implies it is out of file descriptors.

What's the default value for this limit under SystemD? The file /etc/systemd/system.conf has no entry on this recently installed system:

Code: Select all

#DefaultLimitNOFILE=
Is this limit also affected by files in /etc/security/limits.d/ ?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Default Limit of open files

Post by TrevorH » 2022/08/28 11:06:49

Things started by systemd do not use the limits.* files. You need to specify LimitNOFILE= in the unit file.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply