File: apache2.monit

package info (click to toggle)
apache2 2.2.16-6%2Bsqueeze15
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 38,516 kB
  • ctags: 20,767
  • sloc: ansic: 227,630; sh: 22,460; perl: 2,191; makefile: 1,244; awk: 1,133; pascal: 517; lex: 191; python: 136; yacc: 100; xml: 36
file content (7 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
check process apache2 with pidfile /var/run/apache2.pid
   group www
   start program = "/etc/init.d/apache2 start"
   stop  program = "/etc/init.d/apache2 stop"
   if failed host localhost port 80 
        protocol HTTP request "/" then restart
   if 5 restarts within 5 cycles then timeout