aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-19 08:15:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-19 08:15:52 +0100
commit8fb06a8fe1ec7e3c96baa98085b7da6bbb07db03 (patch)
treeb394fa1320e479f29a7f4e09e8c65e92e47e18ef /src/libserver/cfg_rcl.c
parent9cfaba2d31af21c5f614b923563b37246f5a7566 (diff)
downloadrspamd-8fb06a8fe1ec7e3c96baa98085b7da6bbb07db03.tar.gz
rspamd-8fb06a8fe1ec7e3c96baa98085b7da6bbb07db03.zip
[Feature] Allow to disable specific workers in the config
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c6
1 files changed, 6 insertions, 0 deletions
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