From c8887e1f65366861a6e4f995a266e49c045cf802 Mon Sep 17 00:00:00 2001 From: Nathaniel Kenschaft Date: Tue, 16 Jun 2020 21:15:22 -0400 Subject: [PATCH] added one second delay to background service --- bgservice/bgservice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bgservice/bgservice.py b/bgservice/bgservice.py index 09b78ba..5b31e2e 100644 --- a/bgservice/bgservice.py +++ b/bgservice/bgservice.py @@ -137,6 +137,7 @@ def watch_dir(watched_dir="/tmp", log_dir="/tmp/skooloslogs"): NOTIFIER.start() sys.stdout = open("/dev/null", 'w') wm.add_watch(watched_dir, mask, rec=True) + time.sleep(1) sys.stdout = logfile print("Start time: " + time.strftime("%A, %B %d, %Y %H:%M:%S", time.localtime()) + "\n")