aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-20 08:18:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-20 08:18:10 +0100
commitb2e00622655fc48d0f3d2db9bc784441c994602b (patch)
tree8550c34a42cb904a2a9258086dac54cfe6cd587c /src/controller.c
parent5d37e69a60b836818823a6c43cb4269d10d82094 (diff)
downloadrspamd-b2e00622655fc48d0f3d2db9bc784441c994602b.tar.gz
rspamd-b2e00622655fc48d0f3d2db9bc784441c994602b.zip
[Feature] Allow to configure monitored
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c5
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 {