-
Notifications
You must be signed in to change notification settings - Fork 26
/
test_run_servers.sh
executable file
·57 lines (38 loc) · 2.92 KB
/
test_run_servers.sh
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
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
kill `cat ${DIR}/servers/0/.vds/vds_background.pid`
kill `cat ${DIR}/servers/1/.vds/vds_background.pid`
kill `cat ${DIR}/servers/2/.vds/vds_background.pid`
kill `cat ${DIR}/servers/3/.vds/vds_background.pid`
kill `cat ${DIR}/servers/4/.vds/vds_background.pid`
#rm -rf /home/vadim/projects/vds.git/servers
rm -rf ${DIR}/servers
#rm -rf /home/vadim/projects/vds.git/clients
rm -rf ${DIR}/clients
rm ${DIR}/README.md
echo "creating server"
#/home/vadim/projects/vds.git/build/app/vds_background/vds_background server root -p 123qwe --root-folder /home/vadim/projects/vds.git/servers/0
${DIR}/build/app/vds_background/vds_background server root -p 123qwe --root-folder ${DIR}/servers/0
echo "starting server"
#/home/vadim/projects/vds.git/build/app/vds_background/vds_background server start --root-folder /home/vadim/projects/vds.git/servers/0 -ll trace -lm "*"
${DIR}/build/app/vds_background/vds_background server start --root-folder ${DIR}/servers/0 -ll trace -lm "*"
#/home/vadim/projects/vds.git/build/app/vds_node/vds_node node install -l root -p 123qwe --target-folder /home/vadim/projects/vds.git/servers/1 --root-folder /home/vadim/projects/vds.git/clients/1
build/app/vds_node/vds_node node install -l root -p 123qwe --target-folder ${DIR}/servers/1 --root-folder ${DIR}/clients/1
#/home/vadim/projects/vds.git/build/app/vds_background/vds_background server start --root-folder /home/vadim/projects/vds.git/servers/1 -ll trace -lm "*" -P 8051
${DIR}/build/app/vds_background/vds_background server start --root-folder ${DIR}/servers/1 -ll trace -lm "*" -P 8051
#/home/vadim/projects/vds.git/build/app/vds_node/vds_node node login -l root -p 123qwe --root-folder /home/vadim/projects/vds.git/clients/0
build/app/vds_node/vds_node node login -l root -p 123qwe --root-folder ${DIR}/clients/0
build/app/vds_node/vds_node node install -l root -p 123qwe --root-folder ${DIR}/servers/2
${DIR}/build/app/vds_background/vds_background server start --root-folder ${DIR}/servers/2 -ll trace -lm "*" -P 8052
build/app/vds_node/vds_node node install -l root -p 123qwe --root-folder ${DIR}/servers/3
${DIR}/build/app/vds_background/vds_background server start --root-folder ${DIR}/servers/3 -ll trace -lm "*" -P 8053
build/app/vds_node/vds_node node install -l root -p 123qwe --root-folder ${DIR}/servers/4
${DIR}/build/app/vds_background/vds_background server start --root-folder ${DIR}/servers/4 -ll trace -lm "*" -P 8054
echo "upload file"
build/app/vds_node/vds_node file upload -f ${DIR}/README.md --root-folder ${DIR}/clients/0
echo "download file"
build/app/vds_node/vds_node file download -f ${DIR}/README.md.new -n README.md --root-folder ${DIR}/clients/0
rem https://localhost:8050/vds/dump_state
------------------
vds_background server root -l root -p 123 --root-folder /home/vadim/projects/vds.git/servers/0 -ll trace
server start --root-folder /home/vadim/projects/vds.git/servers/0 -ll trace