Skip to content

Commit

Permalink
start supervisord in background
Browse files Browse the repository at this point in the history
  • Loading branch information
alexboden committed Nov 11, 2024
1 parent 75e74cf commit 1fc74e7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#!/bin/bash
set -euo pipefail
# Start the supervisor
/usr/bin/supervisord -c /etc/supervisord.conf

# Start the allocator
# Start supervisord in the background
/usr/bin/supervisord -c /etc/supervisord.conf &

# Wait until the Munge socket is ready
MUNGE_SOCKET_PATH="/var/run/munge/munge.socket.2"

echo "Waiting for Munge socket to be ready..."
while [ ! -S "$MUNGE_SOCKET_PATH" ]; do
sleep 1 # Wait for 1 second before checking again
done

echo "Munge socket is ready. Starting Python script."

# Start the Python script
python3 /home/watcloud-slurm-ci/main.py

0 comments on commit 1fc74e7

Please sign in to comment.