-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·85 lines (71 loc) · 1.36 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·85 lines (71 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
function trap_ctrlc ()
{
# perform cleanup here
echo "Ctrl-C caught...performing clean up"
echo "Doing cleanup"
kill -9 ${PID1}
kill -9 ${PID2}
# kill -9 ${PID3}
#kill -9 ${PID5001}
#kill -9 ${PID5002}
#kill -9 ${PID5003}
#kill -9 ${PID5004}
#kill -9 ${PID5005}
#kill -9 ${PID5006}
#kill -9 ${PID5007}
#kill -9 ${PID5008}
# exit shell script with error code 2
# if omitted, shell script will continue execution
exit 2
}
trap "trap_ctrlc" 2
cd frontend
echo "before go through"
python3 run.py &
PID1=$!
echo ${PID1}
echo "manage app"
cd ..
cd manager_app
python3 run.py &
PID2=$!
echo ${PID2}
# cd react-manage-app
# yarn start &
# PID3=$!
# echo ${PID3}
# cd ..
cd ..
cd auto_scaler
python3 run.py &
#for i in {5001..5008}
#do
# flask run --port $i &
# PID${i}=$!
#done
# flask --debug run --port 5001 &
# PID5001=$!
# echo ${PID5001}
# flask --debug run --port 5002 &
# PID5002=$!
# echo ${PID5002}
# flask --debug run --port 5003 &
# PID5003=$!
# echo ${PID5003}
# flask --debug run --port 5004 &
# PID5004=$!
# echo ${PID5004}
# flask --debug run --port 5005 &
# PID5005=$!
# echo ${PID5005}
# flask --debug run --port 5006 &
# PID5006=$!
# echo ${PID5006}
# flask --debug run --port 5007 &
# PID5007=$!
# echo ${PID5007}
# flask --debug run --port 5008 &
# PID5008=$!
# echo ${PID5008}
wait