-
Notifications
You must be signed in to change notification settings - Fork 16
/
start_linux_debug.sh
149 lines (149 loc) · 6.4 KB
/
start_linux_debug.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
current_dir=$(cd "$(dirname "$0")"; pwd);
if [ -d ${current_dir}/local/update ]; then
if [ ! -d ${current_dir}/commons ]; then
mkdir ${current_dir}/commons
fi
if [ ! -d ${current_dir}/config ]; then
mkdir ${current_dir}/config
fi
if [ ! -d ${current_dir}/configSample ]; then
mkdir ${current_dir}/configSample
fi
if [ ! -d ${current_dir}/local ]; then
mkdir ${current_dir}/local
fi
if [ ! -d ${current_dir}/local ]; then
mkdir ${current_dir}/local
fi
if [ ! -d ${current_dir}/localSample ]; then
mkdir ${current_dir}/localSample
fi
if [ ! -d ${current_dir}/jvm ]; then
mkdir ${current_dir}/jvm
fi
if [ ! -d ${current_dir}/servers ]; then
mkdir ${current_dir}/servers
fi
if [ ! -d ${current_dir}/store ]; then
mkdir ${current_dir}/store
fi
if [ -f ${current_dir}/local/update/o2server/version.o2 ]; then
if [ -d ${current_dir}/local/update/o2server/configSample ]; then
cp -Rf ${current_dir}/local/update/o2server/configSample ${current_dir}/
fi
if [ -d ${current_dir}/local/update/o2server/localSample ]; then
cp -Rf ${current_dir}/local/update/o2server/localSample ${current_dir}/
fi
if [ -d ${current_dir}/local/update/o2server/commons ]; then
cp -Rf ${current_dir}/local/update/o2server/commons ${current_dir}/
fi
if [ -d ${current_dir}/local/update/o2server/jvm ]; then
cp -Rf ${current_dir}/local/update/o2server/jvm ${current_dir}/
fi
if [ -d ${current_dir}/local/update/o2server/servers ]; then
cp -Rf ${current_dir}/local/update/o2server/servers ${current_dir}/
fi
if [ -d ${current_dir}/local/update/o2server/store ]; then
cp -Rf ${current_dir}/local/update/o2server/store ${current_dir}/
fi
if [ -f ${current_dir}/local/update/o2server/console.jar ]; then
cp -f ${current_dir}/local/update/o2server/console.jar ${current_dir}/
fi
if [ -f ${current_dir}/local/update/o2server/index.html ]; then
cp -f ${current_dir}/local/update/o2server/index.html ${current_dir}/
fi
if [ -f ${current_dir}/local/update/o2server/src.zip ]; then
cp -f ${current_dir}/local/update/o2server/src.zip ${current_dir}/
fi
if [ -f ${current_dir}/start_windows.bat ]; then
cp -f ${current_dir}/local/update/o2server/start_windows.bat ${current_dir}/
fi
if [ -f ${current_dir}/start_windows_debug.bat ]; then
cp -f ${current_dir}/local/update/o2server/start_windows_debug.bat ${current_dir}/
fi
if [ -f ${current_dir}/stop_windows.bat ]; then
cp -f ${current_dir}/local/update/o2server/stop_windows.bat ${current_dir}/
fi
if [ -f ${current_dir}/console_windows.bat ]; then
cp -f ${current_dir}/local/update/o2server/console_windows.bat ${current_dir}/
fi
if [ -f ${current_dir}/service_windows.bat ]; then
cp -f ${current_dir}/local/update/o2server/service_windows.bat ${current_dir}/
fi
if [ -f ${current_dir}/start_linux.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_linux.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_linux_debug.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_linux_debug.sh ${current_dir}/
fi
if [ -f ${current_dir}/stop_linux.sh ]; then
cp -f ${current_dir}/local/update/o2server/stop_linux.sh ${current_dir}/
fi
if [ -f ${current_dir}/console_linux.sh ]; then
cp -f ${current_dir}/local/update/o2server/console_linux.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_macos.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_macos.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_macos_debug.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_macos_debug.sh ${current_dir}/
fi
if [ -f ${current_dir}/stop_macos.sh ]; then
cp -f ${current_dir}/local/update/o2server/stop_macos.sh ${current_dir}/
fi
if [ -f ${current_dir}/console_macos.sh ]; then
cp -f ${current_dir}/local/update/o2server/console_macos.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_aix.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_aix.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_aix_debug.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_aix_debug.sh ${current_dir}/
fi
if [ -f ${current_dir}/stop_aix.sh ]; then
cp -f ${current_dir}/local/update/o2server/stop_aix.sh ${current_dir}/
fi
if [ -f ${current_dir}/console_aix.sh ]; then
cp -f ${current_dir}/local/update/o2server/console_aix.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_raspberrypi.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_raspberrypi.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_raspberrypi_debug.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_raspberrypi_debug.sh ${current_dir}/
fi
if [ -f ${current_dir}/stop_raspberrypi.sh ]; then
cp -f ${current_dir}/local/update/o2server/stop_raspberrypi.sh ${current_dir}/
fi
if [ -f ${current_dir}/console_raspberrypi.sh ]; then
cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
fi
if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
fi
if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
fi
if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
fi
if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
fi
if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
fi
cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
rm -Rf ${current_dir}/local/update
fi
fi
setsid ${current_dir}/jvm/linux/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=20000 -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar