Fix supervisord socket and ctdb startup
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user