Created
October 19, 2012 15:18
-
-
Save mryan43/3918783 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby_block "Wait for the broker to finish starting up" do | |
block do | |
attempts = 0 | |
while (attempts < 120) | |
res = Chef::ShellOut.new("cat /logs/jmsbroker.log | grep B1039") | |
res.run_command | |
if (res.exitstatus == 0) | |
break | |
end | |
attempts += 1 | |
sleep 1 | |
end | |
end | |
not_if "test -f /tmp/.jms_broker_started" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XD, tu voulais le garder au cas où tu devais refaire un truc semblable :p