fix ulimit
This commit is contained in:
parent
c37e731eef
commit
6b84921f59
|
@ -36,9 +36,9 @@ class Admin::PlowController < OrbitAdminController
|
||||||
scheme = uri.scheme
|
scheme = uri.scheme
|
||||||
Thread.new do
|
Thread.new do
|
||||||
if !ip.blank?
|
if !ip.blank?
|
||||||
`ulimit -n100000 && #{Binary} #{scheme}://#{ip}#{uri.request_uri} --host=#{host} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
|
`ulimit -n 100000 && #{Binary} #{scheme}://#{ip}#{uri.request_uri} --host=#{host} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
|
||||||
else
|
else
|
||||||
`ulimit -n100000 && #{Binary} #{@setting.url} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
|
`ulimit -n 100000 && #{Binary} #{@setting.url} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
max_wait = 10
|
max_wait = 10
|
||||||
|
|
Loading…
Reference in New Issue