https://github.com/galaxyproject/galaxy
Raw File
Tip revision: 13ab9430b369b6172621e34e3b3d4ca264a04356 authored by mvdbeek on 20 September 2024, 05:15:06 UTC
Merge branch 'release_20.05' into release_20.09
Tip revision: 13ab943
first_startup.sh
#!/bin/sh
TRIES=120
URL=http://localhost:8080
EXIT_CODE=1
i=0
echo "Testing for correct startup:"
bash run.sh --daemon && \
    while [ "$i" -le $TRIES ]; do
        curl "$URL" && EXIT_CODE=0 && break
        sleep 1
        i=$((i + 1))
    done
kill -9 "$(cat galaxy.pid)"
echo "exit code:$EXIT_CODE, showing startup log:"
cat galaxy.log
exit $EXIT_CODE
back to top