-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·64 lines (49 loc) · 1.87 KB
/
Makefile
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
#!/usr/bin/make -f
# -*- mode:makefile -*-
all: start runPlayer runPlayer2
debug: all
tail -f /tmp/db/node1/out.txt &
tail -f /tmp/db/node1/err.txt &
tail -f /tmp/db/node2/out.txt &
tail -f /tmp/db/node2/err.txt &
tail -f /tmp/db/node3/out.txt &
tail -f /tmp/db/node3/err.txt &
start: carpetas deploy
icegridnode --Ice.Config=node1.config &
while ! netstat -lptn 2> /dev/null | grep ":4061"; do sleep 1; done
sleep 1
icegridnode --Ice.Config=node2.config &
sleep 1
icegridnode --Ice.Config=node3.config &
sleep 2
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "application add 'icegrid.xml'" &
sleep 1
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "application update 'icegrid.xml'"
carpetas: /tmp/db/registry /tmp/db/node1/distrib/drobots /tmp/db/node2/distrib/drobots /tmp/db/node3/distrib/drobots
deploy: /tmp/db/deploy
cp src/*.py /tmp/db/deploy
cp *.ice /tmp/db/deploy
icepatch2calc /tmp/db/deploy
update:
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "application update 'icegrid.xml'"
enable-container:
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "server enable Container"
enable-factory:
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "server enable Factory1"
runPlayer:
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "server start Player"
runPlayer2:
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "server start Player2"
stop: shutdown clean
shutdown:
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "node shutdown node1"
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "node shutdown node2"
icegridadmin --Ice.Config=src/locator.config -u user -p pass -e "node shutdown node3"
killall icegridnode
/tmp/db/%:
mkdir -p $@
clean:
rm -rf /tmp/db
rm -rf src/*~
rm -rf src/*.pyc
rm -rf src/__pycache__