1 # This example shows how you might keep a local development Rails server up
2 # and running on your Mac.
4 RAILS_ROOT = "/Users/tom/dev/gravatar2"
7 god.interval = 60 # seconds
12 w.start = "mongrel_rails start -P ./log/mongrel.pid -d"
13 w.stop = "mongrel_rails stop -P ./log/mongrel.pid"
16 pid_file = File.join(RAILS_ROOT, "log/mongrel.pid")
19 start.condition(:process_not_running) do |c|
24 w.restart_if do |restart|
25 restart.condition(:memory_usage) do |c|
27 c.above = (50 * 1024) # 50mb
31 restart.condition(:cpu_usage) do |c|
33 c.above = 10 # percent