3 w.start = File.join(GOD_ROOT, *%w[test configs child_polls simple_server.rb])
8 start.condition(:process_running) do |c|
13 w.restart_if do |restart|
14 restart.condition(:cpu_usage) do |c|
19 restart.condition(:memory_usage) do |c|
20 c.above = 10.megabytes
27 on.condition(:flapping) do |c|
28 c.to_state = [:start, :restart]
31 c.transition = :unmonitored
32 c.retry_in = 10.seconds
34 c.retry_within = 5.minutes