Added sane open file descriptors limit based on request by Hong Xu (xuhdev)

This commit is contained in:
Christian Luginbühl 2015-03-25 16:46:27 +01:00
parent 8df69d5799
commit b165002180

View file

@ -1,6 +1,10 @@
#!/bin/bash
set -e
# When not limiting the open file descritors limit, the memory consumption of
# slapd is absurdly high. See https://github.com/docker/docker/issues/8231
ulimit -n 8192
chown -R openldap:openldap /var/lib/ldap/
if [[ ! -d /etc/ldap/slapd.d ]]; then