-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.sh
57 lines (49 loc) · 1.4 KB
/
run.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
ulimit -n 65535
if ps aux | grep -i "./ShareMemory" | grep -v grep >/dev/null 2>&1;then
echo " ShareMemory is running !!!!!!"
else
###### start ShareMemory ######
cd /home/tlbb/Server/
./shm clear >/dev/null 2>&1
rm -rf exit.cmd quitserver.cmd
#echo -e "\n"
./shm start >/dev/null 2>&1
#echo -e "\n"
echo " start ShareMemory ......"
#until [ "$STATUS" ]
#FILE=`ls -l -lt /home/tlbb/Server/Log/ShareMemory* | head -n 1 | awk '{print$9}' `
#do
# STATUS=`tail -1 $FILE | grep "Loop...Start" | egrep -vi 'grep|tail' `
#done
sleep 30
echo " ShareMemory started completely !!!!!!"
###### start World ######
cd /home/tlbb/Server/
./World >/dev/null 2>&1 &
echo " start World ......"
sleep 5
echo " World started completely !!!!!!"
###### start Login ######
./Login >/dev/null 2>&1 &
echo " start Login ......"
sleep 1
echo " Login started completely !!!!!!"
###### start Server ######
cd /home/tlbb/Server/
./Server >/dev/null 2>&1 &
echo " start Server ......"
#until
#[ "$?" = "1" ]
#do
# ps aux | grep -i "./Server -loadscriptonce" | grep -v grep >/dev/null 2>&1
#done
sleep 60
echo " Server started completely !!!!!!"
###### start Billing ######
cd /home/tlbb/Billing/
wine "Billing.exe" >/dev/null 2>&1 &
echo " start Billing ......"
sleep 5
echo "!!!!!! Click the first Button on the Opened Billing in GUI !!!!!!"
exit
fi