2018-07-13 14:51:00 +02:00
|
|
|
#!/usr/bin/env python3
|
2018-03-29 22:37:28 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2021-12-06 14:30:08 +01:00
|
|
|
from subprocess import Popen, run
|
2018-03-29 22:37:28 +02:00
|
|
|
|
2021-12-06 14:30:08 +01:00
|
|
|
from bgpranking.default import get_homedir
|
2018-11-26 14:59:53 +01:00
|
|
|
|
2018-03-29 22:37:28 +02:00
|
|
|
|
2021-12-06 14:30:08 +01:00
|
|
|
def main():
|
2018-03-30 14:33:33 +02:00
|
|
|
# Just fail if the env isn't set.
|
|
|
|
get_homedir()
|
2021-12-06 14:30:08 +01:00
|
|
|
print('Start backend (redis)...')
|
|
|
|
p = run(['run_backend', '--start'])
|
|
|
|
p.check_returncode()
|
|
|
|
print('done.')
|
|
|
|
Popen(['fetcher'])
|
|
|
|
# Popen(['ssfetcher'])
|
|
|
|
Popen(['parser'])
|
|
|
|
Popen(['sanitizer'])
|
|
|
|
Popen(['dbinsert'])
|
|
|
|
Popen(['ranking'])
|
|
|
|
Popen(['asn_descriptions'])
|
|
|
|
print('Start website...')
|
2021-12-16 15:29:32 +01:00
|
|
|
Popen(['start_website'])
|
2021-12-06 14:30:08 +01:00
|
|
|
print('done.')
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|