Skip to content

Commit

Permalink
Moved 'ulimit' command before 'set -e' to avoid permaent errors with …
Browse files Browse the repository at this point in the history
…low global ulimits as requested by Hong Xu (xuhdev)
  • Loading branch information
dinkel committed Mar 25, 2015
1 parent b165002 commit bd213c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/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


set -e

chown -R openldap:openldap /var/lib/ldap/

if [[ ! -d /etc/ldap/slapd.d ]]; then
Expand Down

0 comments on commit bd213c1

Please sign in to comment.