This commit is contained in:
Timur Torubarov 2016-08-01 18:46:32 +03:00
parent d777078513
commit 0e2c759ef8

View File

@ -122,7 +122,7 @@ class Drain(threading.Thread):
class AgentWorker(threading.Thread):
def __init__(self, telegraf_path):
threading.Thread.__init__(self)
super(AgentWorker, self).__init__()
self.working_dir = os.path.dirname(__file__)
self.startups = []
self.startup_processes = []
@ -284,4 +284,4 @@ if __name__ == '__main__':
worker.stop()
except KeyboardInterrupt:
logger.debug("Interrupted")
worker.stop()
worker.stop()