Mercurial > dovecot > core-2.2
diff src/dns/dns-client-settings.c @ 10615:8f9fc7fa7c73 HEAD
Added dns-client service and library for doing async dns lookups.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 31 Jan 2010 19:10:38 +0200 |
parents | |
children | bf84cb98bd04 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/dns/dns-client-settings.c Sun Jan 31 19:10:38 2010 +0200 @@ -0,0 +1,47 @@ +/* Copyright (c) 2010 Dovecot authors, see the included COPYING file */ + +#include "lib.h" +#include "buffer.h" +#include "settings-parser.h" +#include "service-settings.h" + +#include <stddef.h> + +/* <settings checks> */ +static struct file_listener_settings dns_client_unix_listeners_array[] = { + { "dns-client", 0666, "", "" }, + { "login/dns-client", 0666, "", "" } +}; +static struct file_listener_settings *dns_client_unix_listeners[] = { + &dns_client_unix_listeners_array[0], + &dns_client_unix_listeners_array[1] +}; +static buffer_t dns_client_unix_listeners_buf = { + dns_client_unix_listeners, sizeof(dns_client_unix_listeners), { 0, } +}; +/* </settings checks> */ + +struct service_settings dns_client_service_settings = { + .name = "dns_client", + .protocol = "", + .type = "", + .executable = "dns-client", + .user = "dovecot", + .group = "", + .privileged_group = "", + .extra_groups = "", + .chroot = "", + + .drop_priv_before_exec = FALSE, + + .process_min_avail = 0, + .process_limit = 0, + .client_limit = 1, + .service_count = 0, + .vsz_limit = -1U, + + .unix_listeners = { { &dns_client_unix_listeners_buf, + sizeof(dns_client_unix_listeners[0]) } }, + .fifo_listeners = ARRAY_INIT, + .inet_listeners = ARRAY_INIT +};