diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-07 19:55:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-07 19:55:13 +0100 |
commit | f985d29e6ab396a853474fca0cba086533057ff1 (patch) | |
tree | d4b4f9fd9feb8212c6eb16ff21d3c8dc8f7ddda6 /src/rspamd.c | |
parent | 47746e93d4b599b14ca33e414bde0a81dbcd08dd (diff) | |
download | rspamd-f985d29e6ab396a853474fca0cba086533057ff1.tar.gz rspamd-f985d29e6ab396a853474fca0cba086533057ff1.zip |
[Minor] Some more reload fixes
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 2dc50c5d5..458d3d083 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -308,6 +308,8 @@ reread_config (struct rspamd_main *rspamd_main) else { msg_info_main ("replacing config"); REF_RELEASE (old_cfg); + rspamd_main->cfg->rspamd_user = rspamd_user; + rspamd_main->cfg->rspamd_group = rspamd_group; /* Here, we can do post actions with the existing config */ /* * As some rules are defined in lua, we need to process them, then init @@ -317,12 +319,9 @@ reread_config (struct rspamd_main *rspamd_main) rspamd_init_filters (tmp_cfg, TRUE); /* Do post-load actions */ - rspamd_config_post_load (tmp_cfg, load_opts); + rspamd_config_post_load (tmp_cfg, + load_opts|RSPAMD_CONFIG_INIT_POST_LOAD_LUA|RSPAMD_CONFIG_INIT_PRELOAD_MAPS); msg_info_main ("config has been reread successfully"); - rspamd_map_preload (rspamd_main->cfg); - - rspamd_main->cfg->rspamd_user = rspamd_user; - rspamd_main->cfg->rspamd_group = rspamd_group; } } |