Попробуйте МОНИТ .
Пример конфигурации:
check process example-server with pidfile /var/run/example-server.pid start program = "/etc/init.d/example-server start" with timeout 60 seconds stop program = "/etc/init.d/example-server stop" if cpu > 90% for 3 cycles then restart
Смотрите также: