Follow-up to 12d14aa, configurable auto-reload of .conf files

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-02-26 11:13:06 +01:00
1 parent 3b67afe480
commit e301877b16
3 files changed
+23

No files matched your search

+2
View File
@@ -785,8 +785,10 @@ static void conf_cb(uev_t *w, void *arg, int events)
}
}
#ifdef ENABLE_AUTO_RELOAD
if (conf_any_change())
service_reload_dynamic();
#endif
}
static int add_watcher(uev_ctx_t *ctx, uev_t *w, char *path, uint32_t opt)