diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-01 19:45:35 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-01 19:45:35 +0400 |
commit | 6be82def714f297d54302953286223b4afb07208 (patch) | |
tree | b156eea2e245efeb95702cc6bae6beaa02341440 /src/main.c | |
parent | a43a37453f497a919fb4a5358615d89f18706935 (diff) | |
download | rspamd-6be82def714f297d54302953286223b4afb07208.tar.gz rspamd-6be82def714f297d54302953286223b4afb07208.zip |
* Add dumper to XML file (not all sections yet)
* Add checksum to config files
* Some config parsing reorganizations:
- post_load_config should be called after xml initialization
- xml state machine is corrected to read main section variables
- some linting is added to xml (checking of elements parity)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index fd250781d..350199632 100644 --- a/src/main.c +++ b/src/main.c @@ -638,6 +638,12 @@ main (int argc, char **argv, char **env) } fclose (f); + /* Dump it to xml */ + if (get_config_checksum (rspamd->cfg)) { + xml_dump_config (rspamd->cfg, "/tmp/rspamd.xml"); + } + /* Do post-load actions */ + post_load_config (rspamd->cfg); /* Init counters */ counters = rspamd_hash_new_shared (rspamd->server_pool, g_str_hash, g_str_equal, 64); |