summaryrefslogtreecommitdiff
path: root/test/scripts/light-system-test-stop.sh
blob: 2265a342b1f9c5dd3a150b791647ffe11350ce22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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 nodegroup in $FRONTENDNODES $MERGEPRIMARYNODE $STORAGENODES $MERGESECONDARYNODES $SIGNINGNODES; do
    for node in $nodegroup; do
        echo "starting $node"
        stop_node $(echo $node | tr ':' ' ')
    done
done