Permalink
Browse files

Reboot EC2 instance to ensure TeamCity starts automatically

  • Loading branch information...
1 parent 2bc9a00 commit f1add6090644fed892ff0d1024c048ff1f24fde1 Dimitri Roche & Trace Wax committed Apr 18, 2012
@@ -120,7 +120,7 @@
ci_conf_location = 'testapp/config/ci.yml'
ci_yml = YAML.load_file(ci_conf_location)
- Timeout::timeout(300) do
+ Timeout::timeout(400) do
until system("wget http://#{ci_yml['server']['elastic_ip']}:8111")
sleep 5
end
@@ -29,7 +29,15 @@
mode 0755
end
+execute "Start TeamCity" do
+ # while this runs successfully, it doesn't successfully start TeamCity. Rebooting instead.
+ command "/etc/init.d/teamcity start"
+end
+
execute "Adding TeamCity to init.d" do
- command "/etc/init.d/teamcity start && chkconfig --add teamcity"
+ command "chkconfig --add teamcity"
end
+execute "Reboot the instance to bring up TeamCity" do
+ command "sudo reboot"
+end

0 comments on commit f1add60

Please sign in to comment.