Sorry about the examples, the general idea is that you can execute a command on the server when there are alerts for a specific problem. Upstart and daemontools can't keep your processes running. For this specific task there are tools like Monit, God, Puppet to some extend