BGP-Ranking/bin/stop.py

12 lines
254 B
Python
Executable File

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from subprocess import Popen
from bgpranking.libs.helpers import get_homedir
if __name__ == '__main__':
get_homedir()
p = Popen(['shutdown.py'])
p.wait()
Popen(['run_backend.py', '--stop'])