#!/usr/bin/env bash # Stop the network. The VMs keep running (and billing); destroy.sh removes them. # ./stop.sh miners, block logs, nodes # ./stop.sh miners miners only (the chain keeps running without new blocks) . "$(dirname "$0")/lib/common.sh" require_nodes what="${1:-all}" if [ "$what" = miners ]; then on_all 'systemctl stop igneum-miner; systemctl is-active igneum-miner || true' else on_all 'systemctl stop igneum-miner igneum-blocklog igneumd; systemctl is-active igneumd || true' fi printf '%s\tstop %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$what" >> "$(results_dir_for)/events.log" log "stopped ($what). The servers still bill by the hour: ./destroy.sh when the data is collected"