Reboot Linode if Database Goes Down??
You should not need that. At most, you would restart the database itself, not the entire system, but in either case there is something fundamentally wrong in your system if your database goes down and you have to restart the database by hand.
For example, make sure that your system has enough RAM and swap for your database to run and disable the Out Of Memory killer (search for "OOM killer")
I would insert a line like this one:
Code:
logger DB down, rebooting system
in the /root/monitors/monitorDB.sh script and the next time your system reboots you will be able to know, by looking at /var/log, whether your script was the reason for the reboot or not.