From 0afdab02ac2599df788530ea44a834216fb596d7 Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Wed, 4 Mar 2015 13:49:41 +0200 Subject: [PATCH] add monit example --- examples/monitrc.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/monitrc.conf diff --git a/examples/monitrc.conf b/examples/monitrc.conf new file mode 100644 index 0000000..23d30b2 --- /dev/null +++ b/examples/monitrc.conf @@ -0,0 +1,6 @@ +check process crono_myapp + with pidfile /path/to/crono.pid + start program = "bundle exec crono" with timeout 30 seconds + stop program = "kill -s TERM `cat /path/to/crono.pid`" with timeout 30 seconds + if totalmem is greater than 500 MB for 2 cycles then restart + group myapp_crono