#!/bin/sh # restart nginx before the test invoke-rc.d nginx restart || : sleep 30 curl --max-time 300 --silent --fail -o /dev/null -w "response_code: %{http_code}\n" http://127.0.0.1/