On one of our Linux servers (running Plesk for basic hosting), QMail crashes/shuts down and all users on the server can't get mail.
This happens about 2 or 3 times a week. No other services are affected (apache keeps humming along just fine).
What are some options for checking/restarting QMail in this scenario? Some sort of cron job–or perhaps install ruby and god?
The DJB way would be to use daemontools. Specifically, supervise.
At my site, I'd be using puppet, which checks on all puppet-managed services every half hour and starts them back up if they've died for some reason. Something like:
But more importantly: find out why it's dying, and stop it from doing that. Seriously. Or switch to a mailer daemon that doesn't die on you. I recommend postfix or exim.
daemontools is a good option.
Another one - that doesn't involve changing the way your service starts, and thus might be easier to add in to production, is "monit".
http://mmonit.com/monit/
You can also set up how many times it should restart and other actions that it should do at the same time (eg. fire off an email to an email/SMS gateway).