#!/bin/sh set -eo pipefail URL=http://localhost wget --quiet --tries=1 --spider ${URL} [ $? -ne 0 ] && exit 1 exit 0