diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-20 08:18:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-20 08:18:10 +0100 |
commit | b2e00622655fc48d0f3d2db9bc784441c994602b (patch) | |
tree | 8550c34a42cb904a2a9258086dac54cfe6cd587c /src/controller.c | |
parent | 5d37e69a60b836818823a6c43cb4269d10d82094 (diff) | |
download | rspamd-b2e00622655fc48d0f3d2db9bc784441c994602b.tar.gz rspamd-b2e00622655fc48d0f3d2db9bc784441c994602b.zip |
[Feature] Allow to configure monitored
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c index cef428eba..2f6fef716 100644 --- a/src/controller.c +++ b/src/controller.c @@ -3792,7 +3792,10 @@ start_controller_worker (struct rspamd_worker *worker) rspamd_stat_init (worker->srv->cfg, ctx->ev_base); if (worker->index == 0) { - rspamd_worker_init_monitored (worker, ctx->ev_base, ctx->resolver); + if (!ctx->cfg->disable_monitored) { + rspamd_worker_init_monitored (worker, ctx->ev_base, ctx->resolver); + } + rspamd_map_watch (worker->srv->cfg, ctx->ev_base, ctx->resolver, TRUE); } else { |