I am setting up a server and have just installed "monit" to monitor processes and restart them (and alert me) when certain conditions are met. It works great.
My question is what happens when monit itself dies? Is there a correct way of ensuring that monit restarts itself when it dies? I currently have it restarting (even if it's already running) via a cron job but that doesn't seem very elegant.
What is considered the correct way to restart monit? I'm using Debian and installed it via apt-get (thus I have an /etc/init.d/monit script available). I have ensured it runs using the default levels using update-rc.d.