dovecot-2.2: dict: Added dict-async service.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 2 14:52:29 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/7378ab8e3b4d
changeset: 19067:7378ab8e3b4d
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 02 17:51:23 2015 +0300
description:
dict: Added dict-async service.
This allows running separate dict processes with separate settings for async
and non-async backends.
diffstat:
src/dict/dict-settings.c | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diffs (53 lines):
diff -r 0d04ac4d43ca -r 7378ab8e3b4d src/dict/dict-settings.c
--- a/src/dict/dict-settings.c Wed Sep 02 17:37:16 2015 +0300
+++ b/src/dict/dict-settings.c Wed Sep 02 17:51:23 2015 +0300
@@ -16,6 +16,16 @@
static buffer_t dict_unix_listeners_buf = {
dict_unix_listeners, sizeof(dict_unix_listeners), { NULL, }
};
+
+static struct file_listener_settings dict_async_unix_listeners_array[] = {
+ { "dict-async", 0600, "", "" }
+};
+static struct file_listener_settings *dict_async_unix_listeners[] = {
+ &dict_async_unix_listeners_array[0]
+};
+static buffer_t dict_async_unix_listeners_buf = {
+ dict_async_unix_listeners, sizeof(dict_async_unix_listeners), { NULL, }
+};
/* </settings checks> */
struct service_settings dict_service_settings = {
@@ -44,6 +54,32 @@
.inet_listeners = ARRAY_INIT
};
+struct service_settings dict_async_service_settings = {
+ .name = "dict-async",
+ .protocol = "",
+ .type = "",
+ .executable = "dict",
+ .user = "$default_internal_user",
+ .group = "",
+ .privileged_group = "",
+ .extra_groups = "",
+ .chroot = "",
+
+ .drop_priv_before_exec = FALSE,
+
+ .process_min_avail = 0,
+ .process_limit = 0,
+ .client_limit = 0,
+ .service_count = 0,
+ .idle_kill = 0,
+ .vsz_limit = (uoff_t)-1,
+
+ .unix_listeners = { { &dict_async_unix_listeners_buf,
+ sizeof(dict_async_unix_listeners[0]) } },
+ .fifo_listeners = ARRAY_INIT,
+ .inet_listeners = ARRAY_INIT
+};
+
#undef DEF
#define DEF(type, name) \
{ type, #name, offsetof(struct dict_server_settings, name), NULL }
More information about the dovecot-cvs
mailing list