dataflow/start.sh

17 lines
455 B
Bash
Raw Permalink Normal View History

2022-07-20 17:43:25 +00:00
#! /bin/bash
2022-06-01 10:43:01 +00:00
screen -S raft-0 -X quit
screen -S raft-1 -X quit
screen -S raft-2 -X quit
2022-06-01 10:43:01 +00:00
2022-07-27 15:37:40 +00:00
sleep 1s
2022-07-27 10:02:24 +00:00
VERSION=1.0.0-SNAPSHOT
2022-07-20 17:43:25 +00:00
screen -dmS raft-0 -L java -jar target/dataflow-${VERSION}.jar 0
screen -dmS raft-1 -L java -jar target/dataflow-${VERSION}.jar 1
screen -dmS raft-2 -L java -jar target/dataflow-${VERSION}.jar 2
2022-07-17 19:07:52 +00:00
2022-07-27 15:37:40 +00:00
sleep 0.5s
2022-07-18 07:22:20 +00:00
2022-07-27 10:02:24 +00:00
screen -S raft-0 -X logfile flush 0
screen -S raft-1 -X logfile flush 0
screen -S raft-2 -X logfile flush 0