Sha256: 871d8bb39a3269f44985649763235889b0e258654d824c7f09a88b5e7246434a

Contents?: true

Size: 766 Bytes

Versions: 20

Compression:

Stored size: 766 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 \
    --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

20 entries across 20 versions & 1 rubygems

Version Path
zold-0.14.37 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.36 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.35 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.34 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.33 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.32 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.31 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.30 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.29 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.28 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.27 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.26 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.25 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.24 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.23 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.22 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.21 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.20 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.19 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.14.18 fixtures/scripts/redeploy-on-upgrade.sh