ansible-role-zammad/files/elasticsearch.monit

5 lines
300 B
Text

check process elasticsearch with pidfile /run/elasticsearch/elasticsearch.pid
start program = "/usr/sbin/service elasticsearch start"
stop program = "/usr/sbin/service elasticsearch stop"
if failed host 127.0.0.1 port 9200 for 3 cycles then restart
if 5 restarts within 5 cycles then timeout