From e92cdb63f0609cf57ce52b12554fa9fe29a605bd Mon Sep 17 00:00:00 2001 From: Roman Vanicek Date: Tue, 3 Mar 2026 22:54:00 +0000 Subject: [PATCH] Fix supervisord socket and ctdb startup --- Dockerfile | 1 - entrypoint.sh | 2 ++ supervisord.conf | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 75a3571..64fd66b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,7 +88,6 @@ RUN apt-get -y update && \ #RUN chmod 777 /home COPY *.conf.j2 /root/ -COPY ctdb_scripts/*.script /usr/share/ctdb/events/legacy/ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY crontab /etc diff --git a/entrypoint.sh b/entrypoint.sh index 56ff059..4db2e11 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -65,6 +65,8 @@ else echo [legacy] >> /etc/ctdb/ctdb.conf echo realtime scheduling = false >> /etc/ctdb/ctdb.conf + mkdir /run/ctdb + # Wait a little bit so we see all/most peer nodes through DNS (resolveNodes.sh) sleep 15 fi diff --git a/supervisord.conf b/supervisord.conf index 0430b68..f868ac8 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -6,6 +6,9 @@ user=root [supervisorctl] serverurl=unix:///var/run/supervisor.sock +[unix_http_server] +file=/var/run/supervisor.sock + # Crash the container with CTDB [eventlistener:shutdown_on_exit] command=/usr/bin/python3 /etc/supervisor/scripts/shutdown_on_exit.py ctdb