Initial native Linux parental control application
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import time
|
||||
|
||||
from .database import initialize_database
|
||||
from .scheduler import start_scheduler, stop_scheduler
|
||||
|
||||
|
||||
def main():
|
||||
initialize_database()
|
||||
start_scheduler()
|
||||
|
||||
try:
|
||||
while True:
|
||||
time.sleep(60)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
stop_scheduler()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user