From e1b003495e9ad6748db23f0f7cb75de4d0e26f1b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Oct 2015 18:50:58 +0100 Subject: [PATCH] Add control_path option. --- src/libserver/cfg_file.h | 1 + src/libserver/cfg_rcl.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 6ce3f58f7..44b91505d 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -175,6 +175,7 @@ struct rspamd_config { gchar *cfg_name; /**< name of config file */ gchar *pid_file; /**< name of pid file */ gchar *temp_dir; /**< dir for temp files */ + gchar *control_socket_path; /**< path to the control socket */ #ifdef WITH_GPERF_TOOLS gchar *profile_path; #endif diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 57674aae3..2e348c780 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1295,6 +1295,11 @@ rspamd_rcl_config_init (void) rspamd_rcl_parse_struct_string_list, G_STRUCT_OFFSET (struct rspamd_config, classify_headers), 0); + rspamd_rcl_add_default_handler (sub, + "control_socket", + rspamd_rcl_parse_struct_string, + G_STRUCT_OFFSET (struct rspamd_config, control_socket_path), + 0); /* New DNS configuration */ ssub = rspamd_rcl_add_section (&sub->subsections, "dns", NULL, NULL, -- 2.39.5