change status interface to return hash instead of string
[god.git] / test / configs / stress / stress.god
blobe8c817735ad5e598f8410dc0536ef98e41a4a53d
1 (1..20).each do |i|
2   God.watch do |w|
3     w.name = "stress-#{i}"
4     w.start = 'ruby ' + File.join(File.dirname(__FILE__), *%w[simple_server.rb])
5     w.interval = 1
6     w.grace = 2
7     w.group = 'test'
8   
9     w.start_if do |start|
10       start.condition(:process_running) do |c|
11         c.running = false
12       end
13     end
14   end
15 end