installer/utils/nix_install_test.rb in rhoconnect-3.2.0.beta3 vs installer/utils/nix_install_test.rb in rhoconnect-3.2.0.beta4

- old
+ new

@@ -193,19 +193,19 @@ end #install_package # start_servers # Attempts to start redis and nginx servers def start_servers - max_attempts = 100 + max_attempts = 10 puts ['Redis', 'Nginx', 'thin'].each do |program| attempts = 0 - while @ssh.run("pgrep #{program.downcase}")[0].stdout.strip == "" and + while @ssh.run("pgrep -f #{program.downcase}")[0].stdout.strip == "" and attempts < max_attempts ssh_cmd "sudo /etc/init.d/#{program.downcase} start" attempts += 1 - sleep 1 + sleep 2 end #while if attempts >= max_attempts puts "#{program} failed to start." exit 1 else