lookyloo/bin/shutdown.py

21 lines
341 B
Python
Raw Normal View History

#!/usr/bin/env python3
import time
2021-10-18 13:06:43 +02:00
from lookyloo.default import AbstractManager
def main():
AbstractManager.force_shutdown()
time.sleep(5)
while True:
running = AbstractManager.is_running()
if not running:
break
print(running)
time.sleep(5)
if __name__ == '__main__':
main()