CTDB must be run under init process
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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/* && \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user