1 # apache monit-cn template
3 check process apache with pidfile "/var/run/apache.pid"
4 start program = "/etc/init.d/apache start"
5 stop program = "/etc/init.d/apache stop"
6 if failed host 127.0.0.1 port 80 protocol http
7 with timeout 15 seconds
9 if children > 250 then restart