728x90
반응형
#!/bin/sh
ap=`hostname`

for i in {1..20} ; do

    healthStatus=`curl -LI http://localhost:55001/health -o /dev/null -w '%{http_code}' -s`
    echo "[$ap] health status : $healthStatus"

    if [ "200" == "$healthStatus" ]; then
        break
    fi

    sleep 5
done

 

728x90
300x250

+ Recent posts