-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |