mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
e397f50f53
Use what is in /etc/monit/conf-available as a starting point
7 lines
428 B
Text
Executable file
7 lines
428 B
Text
Executable file
check process {{ apache_service }} with pidfile /var/run/{{ apache_service }}/{{ apache_service }}.pid
|
|
start program = "/sbin/service {{ apache_service }} start"
|
|
stop program = "/sbin/service {{ apache_service }} stop"
|
|
if cpu > 60% for 3 cycles then restart
|
|
if totalmem > 200.0 MB for 3 cycles then restart
|
|
if failed host localhost port 80 type tcp then restart
|
|
if 3 restarts within 5 cycles then timeout
|