Mercurial > dovecot > core-2.2
comparison 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 |
comparison
equal
deleted
inserted
replaced
10614:45709a87e4b3 | 10615:8f9fc7fa7c73 |
---|---|
1 /* Copyright (c) 2010 Dovecot authors, see the included COPYING file */ | |
2 | |
3 #include "lib.h" | |
4 #include "buffer.h" | |
5 #include "settings-parser.h" | |
6 #include "service-settings.h" | |
7 | |
8 #include <stddef.h> | |
9 | |
10 /* <settings checks> */ | |
11 static struct file_listener_settings dns_client_unix_listeners_array[] = { | |
12 { "dns-client", 0666, "", "" }, | |
13 { "login/dns-client", 0666, "", "" } | |
14 }; | |
15 static struct file_listener_settings *dns_client_unix_listeners[] = { | |
16 &dns_client_unix_listeners_array[0], | |
17 &dns_client_unix_listeners_array[1] | |
18 }; | |
19 static buffer_t dns_client_unix_listeners_buf = { | |
20 dns_client_unix_listeners, sizeof(dns_client_unix_listeners), { 0, } | |
21 }; | |
22 /* </settings checks> */ | |
23 | |
24 struct service_settings dns_client_service_settings = { | |
25 .name = "dns_client", | |
26 .protocol = "", | |
27 .type = "", | |
28 .executable = "dns-client", | |
29 .user = "dovecot", | |
30 .group = "", | |
31 .privileged_group = "", | |
32 .extra_groups = "", | |
33 .chroot = "", | |
34 | |
35 .drop_priv_before_exec = FALSE, | |
36 | |
37 .process_min_avail = 0, | |
38 .process_limit = 0, | |
39 .client_limit = 1, | |
40 .service_count = 0, | |
41 .vsz_limit = -1U, | |
42 | |
43 .unix_listeners = { { &dns_client_unix_listeners_buf, | |
44 sizeof(dns_client_unix_listeners[0]) } }, | |
45 .fifo_listeners = ARRAY_INIT, | |
46 .inet_listeners = ARRAY_INIT | |
47 }; |