Skip to content

Instantly share code, notes, and snippets.

@berkayunal
Forked from gacha/elasticsearch.monit
Created May 17, 2018 18:30
Show Gist options
  • Save berkayunal/0715ba65805baebdfa24a69e2b64d23c to your computer and use it in GitHub Desktop.
Save berkayunal/0715ba65805baebdfa24a69e2b64d23c to your computer and use it in GitHub Desktop.

Revisions

  1. @gacha gacha created this gist Nov 7, 2012.
    5 changes: 5 additions & 0 deletions elasticsearch.monit
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    check process elasticsearch with pidfile /var/run/elasticsearch.pid
    start program = "/etc/init.d/elasticsearch start"
    stop program = "/etc/init.d/elasticsearch stop"
    if 5 restarts within 5 cycles then timeout
    if failed host 127.0.0.1 port 9200 type http then restart