aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin.dtl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-07-18 09:50:23 -0500
committerTristan Sloughter <[email protected]>2014-07-18 09:50:23 -0500
commit89ba35271122c7486755a76f8f51eaf1b7c2fd5e (patch)
tree422eae3d8bb6aaeebca84aa49631f474ee65b14d /priv/templates/extended_bin.dtl
parent83678a116e6178cd870720c354ca79a4a9b3c853 (diff)
parentc22d1e405aa881f5bb01085f8a1784bb3af174ac (diff)
downloadrelx-89ba35271122c7486755a76f8f51eaf1b7c2fd5e.tar.gz
relx-89ba35271122c7486755a76f8f51eaf1b7c2fd5e.tar.bz2
relx-89ba35271122c7486755a76f8f51eaf1b7c2fd5e.zip
Merge pull request #210 from davidw/net_ticktime_fix
Get tick time in order to 'synchronize' with the node we are connecting with
Diffstat (limited to 'priv/templates/extended_bin.dtl')
-rw-r--r--priv/templates/extended_bin.dtl7
1 files changed, 5 insertions, 2 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index bfdc132..79b84ce 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -32,9 +32,12 @@ relx_rem_sh() {
# transparently
id="remsh$(relx_gen_id)-${NAME}"
+ # Get the node's ticktime so that we use the same thing.
+ TICKTIME="$(relx_nodetool rpcterms net_kernel get_net_ticktime)"
+
# Setup remote shell command to control node
exec "$BINDIR/erl" "$NAME_TYPE" "$id" -remsh "$NAME" -boot start_clean \
- -setcookie "$COOKIE"
+ -setcookie "$COOKIE" -kernel net_ticktime $TICKTIME
}
# Generate a random id
@@ -46,7 +49,7 @@ relx_gen_id() {
relx_nodetool() {
command="$1"; shift
"$ERTS_DIR/bin/escript" "$ROOTDIR/bin/nodetool" "$NAME_TYPE" "$NAME" \
- -setcookie "$COOKIE" "$command"
+ -setcookie "$COOKIE" "$command" $@
}
# Output a start command for the last argument of run_erl