Skip to content
Snippets Groups Projects
  1. Jan 21, 2013
    • Iustin Pop's avatar
      Start confd in notify mode if we can · c62df702
      Iustin Pop authored
      
      This patch changes the default model—where confd is always started in
      polling mode—to a model where if possible we enable inotify mode
      before starting any of the background threads.
      
      There are some tricky details here: if we enable inotify, we should
      not modify the server state after wards, as inotify events could have
      already fired and took ownership; therefore we presume that inotify
      will work and set reloadModel=ReloadNotify, and only if we fail to
      enable it we change it back to polling mode.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      c62df702
    • Iustin Pop's avatar
      Explicitly load the config at confd startup · 3190ad64
      Iustin Pop authored
      
      Currently, confd main function doesn't load the config, but simply
      forks the individual timer threads, which will—as a side effect-also
      load the configuration as soon as they start.
      
      However, this makes codes to the startup more complex, so let's
      explicitly (try to) load the configuration as first thing.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      3190ad64
  2. Jan 18, 2013
  3. Jan 17, 2013
  4. Jan 16, 2013
  5. Jan 15, 2013
Loading