forked from SpiderClub/haipproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
27 lines (19 loc) · 957 Bytes
/
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
#!/bin/bash
log_path="./log"
if [ ! -d "$log_path" ]; then
mkdir "$log_path"
fi
IS_MAC=""
if [ "$(uname)" == "Darwin" ]; then
IS_MAC="--is_mac"
fi
nohup python3 crawler_booter.py --usage crawler common ajax > $log_path/crawler.log 2>&1 &
nohup python3 scheduler_booter.py --usage crawler common ajax > $log_path/crawler_scheduler.log 2>&1 &
nohup python3 crawler_booter.py --usage validator init > $log_path/init_validator.log 2>&1 &
nohup python3 crawler_booter.py --usage validator tgstat > $log_path/spider_validator.log 2>&1&
nohup python3 scheduler_booter.py --usage validator tgstat > $log_path/validator_scheduler.log 2>&1 &
nohup python3 app_booter.py --host 0.0.0.0 --port 8000 > $log_path/app.log 2>&1 &
#nohup python3 squid_update.py --usage https --interval 3 $IS_MAC > $log_path/squid.log 2>&1 &
nohup python3 squid_update.py --usage tgstat --interval 3 $IS_MAC > $log_path/squid.log 2>&1 &
rm -rf /var/run/squid.pid
squid -N -d1