mirror of https://github.com/CIRCL/lookyloo
28 lines
619 B
Python
Executable File
28 lines
619 B
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from subprocess import run, Popen
|
|
from lookyloo.helpers import get_homedir
|
|
|
|
|
|
def main():
|
|
# Just fail if the env isn't set.
|
|
get_homedir()
|
|
print('Start backend (redis)...')
|
|
p = run(['run_backend', '--start'])
|
|
p.check_returncode()
|
|
print('done.')
|
|
print('Start asynchronous ingestor...')
|
|
Popen(['async_capture'])
|
|
print('done.')
|
|
print('Start background indexer...')
|
|
Popen(['background_indexer'])
|
|
print('done.')
|
|
print('Start website...')
|
|
Popen(['start_website'])
|
|
print('done.')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|