CTDB must be run under init process
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-27 13:24:47 +00:00
parent 83f07e674c
commit ee5959520d
2 changed files with 4 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ RUN apt-get -y update && \
supervisor \
cups \
ctdb \
tini \
samba-exporter && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \

View File

@@ -41,7 +41,9 @@ if [ "$1" = "ctdb" ]; then
mkdir -p "$CLUSTER_SYSDIR_LOCAL/ctdb-run"
rm -rf /run/ctdb
ln -s "$CLUSTER_SYSDIR_LOCAL/ctdb-run" /run/ctdb
exec /usr/sbin/ctdbd --interactive
# We cannot run as PID 1 due to orphans (see https://lists.samba.org/archive/samba-technical/2021-July/136753.html)
exec tini -- /usr/sbin/ctdbd --interactive
fi
if [ -z "$NETBIOS_NAME" ]; then