Skip to content

Instantly share code, notes, and snippets.

@mryan43
Created October 19, 2012 15:18
Show Gist options
  • Save mryan43/3918783 to your computer and use it in GitHub Desktop.
Save mryan43/3918783 to your computer and use it in GitHub Desktop.
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
@onigoetz
Copy link

XD, tu voulais le garder au cas où tu devais refaire un truc semblable :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment