Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,6 @@ class ConfdInotifyEventHandler(pyinotify.ProcessEvent):
pyinotify.EventsCodes.IN_MODIFY
self.file = file
self.watch_handle = None
self.enable()
def enable(self):
"""Watch the given file
......@@ -204,7 +203,7 @@ class ConfdConfigurationReloader(object):
self.processor = processor
self.mainloop = mainloop
self.polling = False
self.polling = True
self.last_notification = 0
# Asyncronous inotify handler for config changes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment