Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
check process mongrel-8000 with pidfile /var/www/apps/myapp/shared/log/mongrel.8000.pid start program = "/usr/bin/ruby /usr/bin/mongrel_rails start -d -e production -p 8000 -a 127.0.0.1 -P log/mongrel.8000.pid -c /var/www/apps/myapp/current --user deploy --group deploy" stop program = "/usr/bin/ruby /usr/bin/mongrel_rails stop -P /var/www/apps/myapp/shared/log/mongrel.8000.pid" if totalmem is greater than 80.0 MB for 5 cycles then restart # eating up memory? if cpu is greater than 50% for 2 cycles then alert # send an email to admin if cpu is greater than 80% for 3 cycles then restart # hung process? if loadavg(5min) greater than 10 for 8 cycles then restart # bad, bad, bad if 3 restarts within 5 cycles then timeout # something is wrong, call the sys-admin if failed port 8000 protocol http with timeout 10 seconds then restart group mongrel
This paste will be private.
From the Design Piracy series on my blog: