diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-06 19:08:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-06 19:08:15 +0100 |
commit | 52b4b8db0b126f7004d6aff79cbea3b06f94c927 (patch) | |
tree | aeed0cb84fc81a93133f0f817675a86b6cd62b53 /src/controller.c | |
parent | fd20fa9f63e72df66b2b702cde982f729f704480 (diff) | |
download | rspamd-52b4b8db0b126f7004d6aff79cbea3b06f94c927.tar.gz rspamd-52b4b8db0b126f7004d6aff79cbea3b06f94c927.zip |
[Rework] Send health checks from a single worker
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 7deec2524..f7e7bd043 100644 --- a/src/controller.c +++ b/src/controller.c @@ -26,7 +26,6 @@ #include "cryptobox.h" #include "ottery.h" #include "fuzzy_wire.h" -#include "libutil/rrd.h" #include "unix-std.h" #include "utlist.h" #include <math.h> @@ -3794,6 +3793,10 @@ start_controller_worker (struct rspamd_worker *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); + } + event_base_loop (ctx->ev_base, 0); rspamd_worker_block_signals (); |