repo.or.cz
/
god.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add --log-level to cli tool
[god.git]
/
test
/
configs
/
stress
/
stress.god
blob
5420fbeba6a0bd8f1442b288fdd1385abea672fb
1
('01'..'08').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