#!/usr/bin/with-contenv bash

HTTP_PORT=${HTTP_PORT:-80}
if ! /usr/bin/curl --silent --fail "http://127.0.0.1:${HTTP_PORT}" > /dev/null; then
	echo "NGiNX is not running"
	exit 1
fi

echo "NGiNX is running"
exit 0
