I still have a problem with stalling programs on a CentOS 5.* VPS. Probably also related to low memory. It effects mainly Webmin and Usermin, sometimes also Postfix and Dovecot, so all domains have no email. I then manually start it, usually a few times a day. Here my question: Is there any piece of software that will autostart any essential program that go down?
Thank you! I finally set it up. My problem was the stalling of Usermin, Webmin, and sometimes Postfix and dovecot. So I followed you link and this config: Code: set daemon 60 set logfile syslog facility log_daemon set mailserver localhost set mail-format { from: [email protected] } set alert [email protected] #set httpd port 2812 and # SSL ENABLE # PEMFILE /var/certs/monit.pem # allow admin:test check process postfix with pidfile /var/spool/postfix/pid/master.pid group mail start program = "/etc/init.d/postfix start" stop program = "/etc/init.d/postfix stop" if failed port 25 protocol smtp then restart if 5 restarts within 5 cycles then timeout check process dovecot with pidfile /var/run/dovecot/master.pid group mail start program = "/etc/init.d/dovecot start" stop program = "/etc/init.d/dovecot stop" if failed port 25 protocol smtp then restart if 5 restarts within 5 cycles then timeout check process usermin with pidfile /var/usermin/miniserv.pid start program = "/etc/init.d/usermin start" stop program = "/etc/init.d/usermin stop" group misc if failed host 127.0.0.1 port 20000 type tcp then restart depends usermin_init check file usermin_init with path /etc/init.d/usermin group misc check process webmin with pidfile /var/webmin/miniserv.pid start program = "/etc/init.d/webmin start" stop program = "/etc/init.d/webmin stop" group misc if failed host 127.0.0.1 port 10000 type tcp then restart depends webmin_init check file webmin_init with path /etc/init.d/usermin group misc I didn't setup SSL and stuff on the server. But it seems to run fine. I will monitor Monit for the next few days...