File: apache2.monit

package info (click to toggle)
apache2 2.4.25-3%2Bdeb9u9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 58,936 kB
  • sloc: ansic: 179,394; perl: 11,183; sh: 5,784; php: 1,313; awk: 741; makefile: 627; lex: 374; yacc: 161; python: 72; xml: 1
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