Skip to content

Instantly share code, notes, and snippets.

@steppefox
Created June 11, 2013 05:32
Show Gist options
  • Save steppefox/5754647 to your computer and use it in GitHub Desktop.
Save steppefox/5754647 to your computer and use it in GitHub Desktop.
Snippet for monit configuration file. Its check process named "elasticsearch" and start it, if elasticsearch is down.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment