updated gui and enforcement
This commit is contained in:
+10
-11
@@ -1,25 +1,24 @@
|
||||
import time
|
||||
|
||||
from .database import initialize_database
|
||||
from .scheduler import start_scheduler, stop_scheduler
|
||||
from .ipc import start_ipc_server, stop_ipc_server
|
||||
from .ipc import IPCServer
|
||||
from .scheduler import Scheduler
|
||||
|
||||
|
||||
def main():
|
||||
initialize_database()
|
||||
start_ipc_server()
|
||||
start_scheduler()
|
||||
scheduler = Scheduler()
|
||||
ipc = IPCServer()
|
||||
|
||||
scheduler.start()
|
||||
ipc.start()
|
||||
|
||||
try:
|
||||
while True:
|
||||
time.sleep(60)
|
||||
ipc._stop_event.wait(3600)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
finally:
|
||||
stop_scheduler()
|
||||
stop_ipc_server()
|
||||
ipc.stop()
|
||||
scheduler.stop()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user