Sha256: 49597c6aedfcbd28fe18097661adfa00bf6c55752679de59f62e707bb720e476

Contents?: true

Size: 793 Bytes

Versions: 36

Compression:

Stored size: 793 Bytes

Contents

#!/bin/bash

function start_node {
  mkdir $1
  cd $1
  zold remote clean
  zold node $3 --nohup --nohup-command='touch restarted' --nohup-log=log --nohup-max-cycles=0 --nohup-log-truncate=10240 \
    --expose-version=$2 --save-pid=pid --routine-immediately \
    --verbose --trace --invoice=REDEPLOY@ffffffffffffffff \
    --host=localhost --port=$1 --bind-port=$1 --threads=0 > /dev/null 2>&1
  wait_for_port $1
  cat pid
  cd ..
}

high=$(reserve_port)
primary=$(start_node ${high} 9.9.9 --standalone)

low=$(reserve_port)
secondary=$(start_node ${low} 1.1.1)
zold remote add localhost ${high} --home=${low} --skip-ping

trap "halt_nodes ${high}" EXIT

wait_for_file ${low}/restarted

echo "High node logs (port ${high}):"
cat ${high}/log
echo "Low node logs (port ${low}):"
cat ${low}/log

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
zold-0.16.18 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.17 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.16 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.15 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.14 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.13 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.12 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.11 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.10 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.9 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.8 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.7 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.6 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.5 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.4 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.3 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.2 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.1 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.16.0 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.15.0 fixtures/scripts/redeploy-on-upgrade.sh