Files
server/usr/share/doc/apache2/examples/apache2.monit
2026-01-07 20:52:11 +01:00

8 lines
284 B
Plaintext

check process apache2 with pidfile /var/run/apache2.pid
group www
start program = "service apache2 start"
stop program = "service apache2 stop"
if failed host localhost port 80
protocol HTTP request "/" then restart
if 5 restarts within 5 cycles then timeout