LINUX.ORG.RU

Наслаждайся:

# LIGHTTPD SERVER
  check process lighttpd with pidfile /var/run/lighttpd.pid
    start program = "/usr/local/etc/rc.d/lighttpd start" with timeout 60 seconds
    stop program  = "/usr/local/etc/rc.d/lighttpd stop"
#    if cpu > 60% for 2 cycles then alert
    if cpu > 80% for 5 cycles then restart
    if totalmem > 300.0 MB for 5 cycles then restart
    if children > 300 then restart
    if loadavg(5min) greater than 10 for 8 cycles then stop
    if failed host 10.10.10.10 port 80 protocol http
       and request "/index.html"
       then restart
    if 3 restarts within 5 cycles then timeout
    group server
IPR ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.