1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash # loop until the VM starts responding to pings while ! $(relx_nodetool "ping">/dev/null) do sleep 1 done # get the beam pid and write it to the file passed as # argument PID="$(relx_get_pid)" echo $PID > $1