mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Follow-up to 12d14aa, configurable auto-reload of .conf files
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
3b67afe480
commit
e301877b16
3 files changed
+23
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user