Skip to content

Instantly share code, notes, and snippets.

@volkan
Created September 25, 2016 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save volkan/a65cd24572c7b8f0bf3c5308d86e4f1c to your computer and use it in GitHub Desktop.
Save volkan/a65cd24572c7b8f0bf3c5308d86e4f1c to your computer and use it in GitHub Desktop.
check process solr with pidfile "/var/solr/solr-8983.pid"
start program = "/sbin/service solr start"
stop program = "/sbin/service solr stop"
restart program = "/sbin/service solr restart"
if failed port 8983 type TCP with timeout 3 seconds then start
if 5 restarts within 15 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment