Fix supervisord socket and ctdb startup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-03-03 22:54:00 +00:00
parent a5df4dbd6d
commit e92cdb63f0
3 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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