Files
crono/examples/monitrc.conf
Dzmitry Plashchynski 0afdab02ac add monit example
2015-03-04 13:49:41 +02:00

7 lines
286 B
Plaintext

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