aboutsummaryrefslogblamecommitdiffstats
path: root/priv/templates/builtin_hook_wait_for_process
blob: af5994dffb99ae046b7921017d217e37ffb3f2b5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                
#!/bin/bash

# loop until the VM starts responding to pings
while ! $(relx_nodetool "ping">/dev/null)
do
    sleep 1
done

# loop until the name provided as argument gets
# registered
while true
do
    if [ "$(relx_nodetool eval "whereis($1).")" != "undefined" ]
    then
        break
    fi
done