Sha256: 4372f93efb8e490ea92717089c3ce97726e4aba711a6b818d520a2e9d452cab3

Contents?: true

Size: 1017 Bytes

Versions: 63

Compression:

Stored size: 1017 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 --tolerate-edges --tolerate-quorum=1 \
    --verbose --trace --invoice=REDEPLOY@ffffffffffffffff --ignore-empty-remotes \
    --host=127.0.0.1 --port=$1 --bind-port=$1 --threads=1 --strength=20 > /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 clean
zold remote add 127.0.0.1 ${high} --home=${low} --skip-ping

trap "halt_nodes ${high}" EXIT

wait_for_file ${low}/restarted

if [ `ps ax | grep zold | grep "${low}"` -eq '' ]; then
  echo "The score finder process is still there, it's a bug"
  exit -1
fi

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

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
zold-0.31.8 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.31.7 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.31.6 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.31.5 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.31.4 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.31.3 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.31.2 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.31.1 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.31.0 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.30.0 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.34 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.33 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.32 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.31 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.30 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.29 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.28 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.27 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.26 fixtures/scripts/redeploy-on-upgrade.sh
zold-0.29.25 fixtures/scripts/redeploy-on-upgrade.sh