aboutsummaryrefslogblamecommitdiffstats
path: root/priv/templates/builtin_hook_pid
blob: 0151631c77d853a19bb02fc1e7a15c534acf8b7d (plain) (tree)
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