aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/builtin_hook_wait_for_vm_start
diff options
context:
space:
mode:
Diffstat (limited to 'priv/templates/builtin_hook_wait_for_vm_start')
-rw-r--r--priv/templates/builtin_hook_wait_for_vm_start7
1 files changed, 7 insertions, 0 deletions
diff --git a/priv/templates/builtin_hook_wait_for_vm_start b/priv/templates/builtin_hook_wait_for_vm_start
new file mode 100644
index 0000000..6b9ee12
--- /dev/null
+++ b/priv/templates/builtin_hook_wait_for_vm_start
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# loop until the VM starts responding to pings
+while ! $(relx_nodetool "ping">/dev/null)
+do
+ sleep 1
+done