7 lines
372 B
Django/Jinja
7 lines
372 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
check process {{ opensearch_monit_service }} with pidfile /run/opensearch/opensearch.pid
|
|
start program = "/usr/sbin/service opensearch start"
|
|
stop program = "/usr/sbin/service opensearch stop"
|
|
if failed host {{ opensearch_network_host }} port {{ opensearch_http_port }} for 3 cycles then restart
|
|
if 5 restarts within 5 cycles then timeout
|