From 8fb06a8fe1ec7e3c96baa98085b7da6bbb07db03 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 19 Jun 2017 08:15:52 +0100 Subject: [Feature] Allow to disable specific workers in the config --- src/libserver/cfg_rcl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libserver/cfg_rcl.c') diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index d8fc1c764..bf3a1779f 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -2400,6 +2400,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg) G_STRUCT_OFFSET (struct rspamd_worker_conf, rlimit_maxcore), RSPAMD_CL_FLAG_INT_32, "Max size of core file in bytes"); + rspamd_rcl_add_default_handler (sub, + "enabled", + rspamd_rcl_parse_struct_boolean, + G_STRUCT_OFFSET (struct rspamd_worker_conf, enabled), + 0, + "Enable or disable a worker (true by default)"); /** * Modules handler -- cgit v1.2.3