Skip to content

Commit f92c038

Browse files
committed
Merge branch 'lionep-stable' into hotfix-1.2.2
2 parents 0a0d2b1 + 85692f6 commit f92c038

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

image/environment/default.startup.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ KEEP_EXISTING_CONFIG: false
5656
# Remove config after setup
5757
LDAP_REMOVE_CONFIG_AFTER_SETUP: true
5858

59+
# Ulimit
60+
LDAP_NOFILE: 1024
61+
5962
# ssl-helper environment variables prefix
6063
LDAP_SSL_HELPER_PREFIX: ldap # ssl-helper first search config from LDAP_SSL_HELPER_* variables, before SSL_HELPER_* variables.
6164

image/service/slapd/process.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ log-helper level eq trace && set -x
77
# Reduce maximum number of number of open file descriptors to 1024
88
# otherwise slapd consumes two orders of magnitude more of RAM
99
# see https://github.com/docker/docker/issues/8231
10-
ulimit -n 1024
10+
ulimit -n $LDAP_NOFILE
1111

1212
exec /usr/sbin/slapd -h "ldap://$HOSTNAME ldaps://$HOSTNAME ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL

image/service/slapd/startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ log-helper level eq trace && set -x
88
# Reduce maximum number of number of open file descriptors to 1024
99
# otherwise slapd consumes two orders of magnitude more of RAM
1010
# see https://github.com/docker/docker/issues/8231
11-
ulimit -n 1024
11+
ulimit -n $LDAP_NOFILE
1212

1313
# create dir if they not already exists
1414
[ -d /var/lib/ldap ] || mkdir -p /var/lib/ldap

0 commit comments

Comments
 (0)