forked from niejn/lizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deamon.sh
112 lines (77 loc) · 4.25 KB
/
deamon.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
#!/bin/sh
#########美国站#############
ps -fe|grep usa/UIP |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/usa/UIP -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start usa uip process.....">> /root/restart.log
fi
ps -fe|grep usa/UASIN |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/usa/UASIN -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start usa uasinprocess.....">> /root/restart.log
fi
ps -fe|grep usa/ULIST |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/usa/ULIST -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start usa ulist process.....">> /root/restart.log
fi
########日本######
ps -fe|grep jp/UIP |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/jp/UIP -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start jp uip process.....">> /root/restart.log
fi
ps -fe|grep jp/UASIN |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/jp/UASIN -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start jp uasinprocess.....">> /root/restart.log
fi
ps -fe|grep jp/ULIST |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/jp/ULIST -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start jp ulist process.....">> /root/restart.log
fi
### 德国 ########
ps -fe|grep de/UIP |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/de/UIP -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start de uip process.....">> /root/restart.log
fi
ps -fe|grep de/UASIN |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/de/UASIN -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start de uasinprocess.....">> /root/restart.log
fi
ps -fe|grep de/ULIST |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/de/ULIST -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start de ulist process.....">> /root/restart.log
fi
### 英国 ########
ps -fe|grep uk/UIP |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/uk/UIP -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start uk uip process.....">> /root/restart.log
fi
ps -fe|grep uk/UASIN |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/uk/UASIN -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start uk uasinprocess.....">> /root/restart.log
fi
ps -fe|grep uk/ULIST |grep -v grep
if [ $? -ne 0 ]
then
nohup /root/gocode/src/github.com/hunterhug/lizard/spiders/uk/ULIST -core=/root/gocode/src/github.com/hunterhug/lizard/public/core -root=/root/gocode/src/github.com/hunterhug/lizard > /dev/null 2>&1 &
echo `date +"%Y年%m月%d日 %h-%H-%m-%s"` "start uk ulist process.....">> /root/restart.log
fi