Doug Lauder
2023-03-22 17:22:27 -04:00
коммит произвёл GitHub
родитель b61c096497
Коммит c943ed6859
13276 изменённых файлов: 1695615 добавлений и 223189 удалений

20
server/scripts/wait-for-system-start.sh Исполняемый файл
Просмотреть файл

@@ -0,0 +1,20 @@
#!/bin/bash
total=0
max_wait_seconds=60
echo "waiting $max_wait_seconds seconds for the server to start"
while [[ "$total" -le "$max_wait_seconds" ]]; do
if bin/mmctl system status --local 2> /dev/null; then
exit 0
else
((total=total+1))
printf "."
sleep 1
fi
done
printf "\nserver didn't start in $max_wait_seconds seconds\n"
exit 1