'Script to start jboss instance if it fails

I'm trying to write a script for jboss instance and place it in crontab to run every 30min.

->Checks if the Jboss instance is running or not ->Sends an email out if crashed or not running. ->If jboss instance crashes it needs to start automatically by using startup command



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source