Actions
Bug #878
closedWget failed processes won't stop
Description
After testing it for a while I get a collection of open "wget ..." processes. If wget fails, the processes are not closed and they are also not killed by the restart of the foreman-proxy daemon.
Posted patch:
--- lib/proxy/tftp.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/proxy/tftp.rb b/lib/proxy/tftp.rb index f4b75b9..aea5d59 100644 --- a/lib/proxy/tftp.rb +++ b/lib/proxy/tftp.rb @@ -57,7 +57,7 @@ module Proxy::TFTP #as the dst might contain another sub directory FileUtils.mkdir_p destination.parent - cmd = "wget --no-check-certificate -nv -c #{src} -O \"#{destination}\"" + cmd = "wget --timeout=10 --tries=3 --no-check-certificate -nv -c #{src} -O \"#{destination}\"" Proxy::Util::CommandTask.new(cmd) end -- 1.7.4.1
Actions