Script to check for web service availability, and if unavailable executes a command (generally to restart the service).