Commit c6259dbc authored by Guido Trotter's avatar Guido Trotter
Browse files

confd: start in polling mode



This allows us not to enable the inotify handler immediately, and thus
to make it easier for us should the config file not exist at all.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent e369f21d
...@@ -115,7 +115,6 @@ class ConfdInotifyEventHandler(pyinotify.ProcessEvent): ...@@ -115,7 +115,6 @@ class ConfdInotifyEventHandler(pyinotify.ProcessEvent):
pyinotify.EventsCodes.IN_MODIFY pyinotify.EventsCodes.IN_MODIFY
self.file = file self.file = file
self.watch_handle = None self.watch_handle = None
self.enable()
def enable(self): def enable(self):
"""Watch the given file """Watch the given file
...@@ -204,7 +203,7 @@ class ConfdConfigurationReloader(object): ...@@ -204,7 +203,7 @@ class ConfdConfigurationReloader(object):
self.processor = processor self.processor = processor
self.mainloop = mainloop self.mainloop = mainloop
self.polling = False self.polling = True
self.last_notification = 0 self.last_notification = 0
# Asyncronous inotify handler for config changes # Asyncronous inotify handler for config changes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment