For 60 retries use: if wget --tries=60 --wait=1 --connect-timeout=1 --timeout=1 --quiet http://localhost:8080/; then echo 'success'; else echo 'fail'; fi; exit 0
I don't understand why you suggest not to fail with exit 1. The task > has failed. The plan is that I want to later on implement rollback > logic and then I need the task to fail to trigger the rollback logic. exiting on anything but 0 halts capistrano. > > > I am also unsure about where you meant me to put the [puts "fail"] > statement. Surely it must be in a if statement of some sorts otherwise > it would just print fail regardless of whether it worked or not. Sorry, I'm a bit sleepy. The shell command above is echoing success or fail. - Mike --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
