Skip to content

fix(ldap): exec the bitnami entrypoint and clear a stale slapd.pid - #389

Open
nicfab wants to merge 1 commit into
opencloud-eu:mainfrom
nicfab:patch-1
Open

nicfab wants to merge 1 commit into
opencloud-eu:mainfrom
nicfab:patch-1

Conversation

@nicfab

@nicfab nicfab commented Sep 23, 2026

Copy link
Copy Markdown

The override script ran the bitnami entrypoint without exec, so a shell stayed PID 1 and did not forward SIGTERM: every "docker compose stop" ended with SIGKILL after the grace period (exit 137) and slapd never removed its pid file. On the next start of the same container, the bitnami setup found a live process with that PID, treated it as a running slapd and terminated it, putting the container into a restart loop (exit 143).

exec makes slapd PID 1, so it shuts down cleanly on SIGTERM. Removing a stale pid/args file before setup also covers unclean stops (OOM, host crash, docker kill).

Note

The diff also drops trailing whitespace after then (line 5); no functional change.

The override script ran the bitnami entrypoint without exec, so a shell
stayed PID 1 and did not forward SIGTERM: every "docker compose stop"
ended with SIGKILL after the grace period (exit 137) and slapd never
removed its pid file. On the next start of the same container, the
bitnami setup found a live process with that PID, treated it as a
running slapd and terminated it, putting the container into a restart
loop (exit 143).

exec makes slapd PID 1, so it shuts down cleanly on SIGTERM. Removing a
stale pid/args file before setup also covers unclean stops (OOM, host
crash, docker kill).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant