dataflow/start.sh
2022-07-27 23:37:40 +08:00

17 lines
461 B
Bash
Executable File

#! /bin/bash
screen -S raft-0 -X quit
screen -S raft-1 -X quit
# screen -S raft-2 -X quit
sleep 1s
VERSION=1.0.0-SNAPSHOT
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
sleep 0.5s
screen -S raft-0 -X logfile flush 0
screen -S raft-1 -X logfile flush 0
# screen -S raft-2 -X logfile flush 0