I need a way to monitor if one of my processes is running, for the purpose of this example we'll call the process "holed".
holed resides in ~holed/bin and is started/stopped/restarted by issuing ./holedctl (start | stop | restart)
When holed is running, 604 processes run under the name holed (this is a mailing solution).
What I need to happen: Every minute, check if holed is running. If holed is not running start the process and continue monitoring it every minute.
Extra: Notify me via email when the process stops. And when its restarted.
I figured the best way would be something to do with Cron jobs. I'm fairly new to linux, but have a solid overview and understanding.
This is on Fedora Core 4 or higher.