diff options
| author | Maximilian | 2014-12-10 14:09:01 +0100 |
|---|---|---|
| committer | Maximilian | 2014-12-10 14:09:01 +0100 |
| commit | afdd4806fcd15a02cd4caa74c252dc9db8455a21 (patch) | |
| tree | 536912a3299bbe4ea59795ff10e7f764e8636fd6 /monit/memcached.conf | |
| parent | 5e7fe4497f008969a00bda55c634ea20488dcb2d (diff) | |
| download | dotfiles-afdd4806fcd15a02cd4caa74c252dc9db8455a21.tar.gz | |
Added more config files.
Diffstat (limited to 'monit/memcached.conf')
| -rw-r--r-- | monit/memcached.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/monit/memcached.conf b/monit/memcached.conf new file mode 100644 index 0000000..49f8875 --- /dev/null +++ b/monit/memcached.conf @@ -0,0 +1,8 @@ +check process with pidfile /var/run/memcached.pid + start program = "/etc/init.d/memcached start" + stop program = "/etc/init.d/memcached stop" + if failed host localhost port 11211 protocol MEMCACHE then restart + if cpu > 70% for 2 cycles then alert + if cpu > 98% for 5 cycles then restart + if 2 restarts within 3 cycles then timeout + |
