5 rtmpfiles unicorn_config curl_out curl_err pid r_err r_out
10 cat > $unicorn_config <<EOF
17 worker_connections $nr_thread
21 rainbows
-D t2000.ru
-c $unicorn_config
25 for i
in $
(awk "BEGIN{for(i=0;i<$nr_client;++i) print i}" </dev
/null
)
27 ( curl
-sSf http
://$listen/$i >> $curl_out 2>> $curl_err ) &
30 echo elapsed
=$
(( $
(date +%s
) - $start ))
35 test x
"$(wc -l < $curl_out)" = x
$nr_client
36 nr
=$
(sort < $curl_out |
uniq |
wc -l)
37 test "$nr" -eq $nr_client