From c35a1ea750ca2dd456b285a956e109304fd4635e Mon Sep 17 00:00:00 2001 From: Clint Armstrong Date: Mon, 13 Jul 2015 09:48:18 -0400 Subject: [PATCH] don't loop too fast --- poller-service.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/poller-service.py b/poller-service.py index 8852a1a65a..e57f8f7aeb 100755 --- a/poller-service.py +++ b/poller-service.py @@ -270,3 +270,7 @@ while True: # If we made it this far, break out of the loop and query again. break + + # Looping with no break causes the service to be killed by init. + # This point is only reached if the query is empty, so sleep half a second before querying again. + time.sleep(.5)