Files
crono/examples/monitrc.conf
2015-03-05 15:13:48 +02:00

7 lines
300 B
Plaintext

check process crono_myapp
with pidfile /path/to/crono.pid
start program = "bundle exec crono -e production" 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