echo -n 'Are you sure? (y|N)';
if [ $SANITYCHECK != 'y' ]; then
echo "EXITING INPUT NOT y";
Why? Well imagine you have 20 servers running mysql for the site. You spent 100K to get these servers redundant, automatically failover if a few go down-which gets the company a High Availability score of 99.999% in the database backend and then someone runs
dsh -N ALL_MY_DB_SERVERS /etc/init.d/mysql restart
when the intention was to restart another process like say the monitoring process.