Control restarts via systemd

This commit is contained in:
phil 2023-12-06 10:46:59 +01:00
parent fd4b90f43d
commit ca60540f15
4 changed files with 19 additions and 20 deletions

View file

@ -1,7 +0,0 @@
# {{ 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