#!/bin/sh

set -o nounset
set -o errexit

top_srcdir=$(cd $(dirname $0)/../..; pwd)

. ${top_srcdir}/test/scripts/testutils.sh

stop_node() {
    node=$1
    ${top_srcdir}/tools/to_catlfish.py to_erl nodes/${node}/ "init:stop()"
}

for node in ${ERLANGNODES}; do
    stop_node $(echo $node | tr ':' ' ')
done