add monit example

This commit is contained in:
Dzmitry Plashchynski
2015-03-04 13:49:41 +02:00
parent d296de7c06
commit 0afdab02ac

6
examples/monitrc.conf Normal file
View File

@@ -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