aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/builtin_hook_wait_for_vm_start
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2016-11-26 11:07:50 -0800
committerGitHub <[email protected]>2016-11-26 11:07:50 -0800
commit1014374d82f783c9da82eecf424c34bceb9fc293 (patch)
treeccfbd1bef3f2e3e2fc0b21bc2652b5a9132d1ff9 /priv/templates/builtin_hook_wait_for_vm_start
parentc305c89713abf48570e2db152b367f00ac641893 (diff)
parent3905d39d180efe125b9ef5351d1c3b27a3f825b0 (diff)
downloadrelx-1014374d82f783c9da82eecf424c34bceb9fc293.tar.gz
relx-1014374d82f783c9da82eecf424c34bceb9fc293.tar.bz2
relx-1014374d82f783c9da82eecf424c34bceb9fc293.zip
Merge pull request #445 from lrascao/feature/extended_script_hooks
Add support for new relx directive that provides start/stop script hooks
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