Skip to content

Instantly share code, notes, and snippets.

@jacobwyke
Created May 22, 2016 07:04
Show Gist options
  • Save jacobwyke/f56de0064357b0ce7cea78eb0d532ba1 to your computer and use it in GitHub Desktop.
Save jacobwyke/f56de0064357b0ce7cea78eb0d532ba1 to your computer and use it in GitHub Desktop.
Memcached Monit File
#
# /etc/monit/conf.d/memcached
#
check process memcached with pidfile /var/run/memcached.pid
group memcache
start program = "/usr/bin/service memcached start"
stop program = "/usr/bin/service memcached stop"
if failed host 127.0.0.1 port 11211 protocol MEMCACHE then restart
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