2018-07-13 14:51:00 +02:00
|
|
|
#!/usr/bin/env python3
|
2018-03-29 22:37:28 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from subprocess import Popen
|
2018-03-30 14:33:33 +02:00
|
|
|
from bgpranking.libs.helpers import get_homedir
|
2018-03-29 22:37:28 +02:00
|
|
|
|
2018-11-26 14:59:53 +01:00
|
|
|
import redis
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if redis.VERSION < (3, ):
|
|
|
|
print('redis-py >= 3 is required.')
|
|
|
|
sys.exit()
|
2018-03-29 22:37:28 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2018-03-30 14:33:33 +02:00
|
|
|
# Just fail if the env isn't set.
|
|
|
|
get_homedir()
|
2018-03-29 22:37:28 +02:00
|
|
|
p = Popen(['run_backend.py', '--start'])
|
|
|
|
p.wait()
|
|
|
|
Popen(['fetcher.py'])
|
2018-07-13 14:51:00 +02:00
|
|
|
Popen(['ssfetcher.py'])
|
2018-03-29 22:37:28 +02:00
|
|
|
Popen(['parser.py'])
|
|
|
|
Popen(['sanitizer.py'])
|
|
|
|
Popen(['dbinsert.py'])
|
2018-04-10 00:20:59 +02:00
|
|
|
Popen(['ranking.py'])
|
2018-04-13 18:04:17 +02:00
|
|
|
Popen(['asn_descriptions.py'])
|