ansible-role-zammad/templates/opensearch.monit

5 lines
327 B
Text

check process opensearch 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