lookyloo/bin/start.py

35 lines
861 B
Python
Raw Normal View History

#!/usr/bin/env python3
2021-09-07 12:59:31 +02:00
from subprocess import Popen, run
2021-10-18 13:06:43 +02:00
from lookyloo.default import get_config, get_homedir
def main():
# Just fail if the env isn't set.
get_homedir()
2020-10-22 16:41:00 +02:00
print('Start backend (redis)...')
p = run(['run_backend', '--start'])
p.check_returncode()
print('done.')
2021-08-30 12:48:13 +02:00
print('Start archiving process...')
2022-09-14 16:47:38 +02:00
#Popen(['archiver'])
print('done.')
2020-10-22 16:41:00 +02:00
print('Start asynchronous ingestor...')
2022-09-14 16:47:38 +02:00
#for _ in range(get_config('generic', 'async_capture_processes')):
# Popen(['async_capture'])
2020-10-22 16:41:00 +02:00
print('done.')
print('Start background indexer...')
2022-09-14 16:47:38 +02:00
#Popen(['background_indexer'])
print('done.')
print('Start background processing...')
2022-09-14 16:47:38 +02:00
# Popen(['processing'])
print('done.')
2020-10-22 16:41:00 +02:00
print('Start website...')
2022-09-14 16:47:38 +02:00
#Popen(['start_website'])
2020-10-22 16:41:00 +02:00
print('done.')
if __name__ == '__main__':
main()