# thttpd monit-cn template check process thttpd with pidfile "/var/run/thttpd.pid" start program = "/etc/init.d/thttpd start" stop program = "/etc/init.d/thttpd stop" if failed host 127.0.0.1 port 80 with timeout 15 seconds then restart if children > 100 then restart