Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342795 - net-nds/openldap: configuration option (init.d) for increasing open files ulimit for slapd needed
Summary: net-nds/openldap: configuration option (init.d) for increasing open files uli...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-26 17:25 UTC by Huemi
Modified: 2012-02-12 21:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Huemi 2010-10-26 17:25:07 UTC
Gentoo uses a default ulimit of 1024 open files. While this will have some benefits, it causes trouble in combination with some packages.

While i.e. for named the number of open files can be adjusted by changing one config file entry (see comment 4 of http://bugs.gentoo.org/show_bug.cgi?id=296663) or for squid there is an entry in /etc/conf.d/squid, it is not possible to increase this limit for slapd, which causes many trouble if this vital service fails because this limit prevents it from opening further files.

Trying to solve it via changing the limit in /etc/security/limits.conf fails, because the service is started via start-stop-daemon (you can't use -c ldap for it, because it uses privileged ports) and also seems to not read the limit-file by itself.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 21:53:19 UTC
See the rc_ulimit parameters in /etc/rc.conf and add them to your /etc/conf.d/slapd as needed.