Bash script to check if MySQL is running on your Amazon EC2 – restart if needed
If you run for example WordPress or something else that’s heavily depending on a lot of MySQL resources to run, you don’t want to wake up every morning and notice that your MySQL database has crashed again…. So to make sure the server would restart MySQL every time it fails …