title: What to do if database connection check fails in bootstrap?
body: <p>I am developing an app using grails. In the bootstrap part, I am checking and initialising database connections. Suppose the database is not available due to some problem its wise to send notification to administrator. But, what to do next? Should the grails application stop automatically or wait for administrator to come and do that manually? Also, what is the way of automatically shutting down the deployed war using grails?</p>