Code: Select all
check process lighttpd with pidfile /var/run/lighttpd.pid
group lighttpd
start program = "/etc/init.d/lighttpd start"
stop program = "/etc/init.d/lighttpd stop"
if failed host "https://mail.example.com" port 443 type tcpssl protocol http then restart
if 5 restarts within 5 cycles then timeout