director-settings.c revision 74c369c0587c5f6bb13d730675d8bc455c5c3f8e
/* Copyright (c) 2009-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "settings-parser.h"
#include "service-settings.h"
#include "director-settings.h"
/* <settings checks> */
static struct file_listener_settings director_unix_listeners_array[] = {
{ "director-admin", 0600, "", "" }
};
static struct file_listener_settings *director_unix_listeners[] = {
};
static buffer_t director_unix_listeners_buf = {
sizeof(director_unix_listeners), { NULL, }
};
static struct file_listener_settings director_fifo_listeners_array[] = {
};
static struct file_listener_settings *director_fifo_listeners[] = {
};
static buffer_t director_fifo_listeners_buf = {
sizeof(director_fifo_listeners), { NULL, }
};
/* </settings checks> */
struct service_settings director_service_settings = {
.name = "director",
.protocol = "",
.type = "",
.executable = "director",
.user = "$default_internal_user",
.group = "",
.privileged_group = "",
.extra_groups = "",
.chroot = ".",
.process_min_avail = 0,
.process_limit = 1,
.client_limit = 0,
.service_count = 0,
sizeof(director_unix_listeners[0]) } },
sizeof(director_fifo_listeners[0]) } },
};
static const struct setting_define director_setting_defines[] = {
};
const struct director_settings director_default_settings = {
.master_user_separator = "",
.director_servers = "",
.director_mail_servers = "",
.director_username_hash = "%Lu",
.director_flush_socket = "",
.director_user_kick_delay = 2,
.director_max_parallel_moves = 100,
.director_max_parallel_kicks = 100,
};
const struct setting_parser_info director_setting_parser_info = {
.module_name = "director",
.struct_size = sizeof(struct director_settings),
};
/* <settings checks> */
static bool
{
*error_r = "director_user_expire is too low";
return FALSE;
}
return TRUE;
}
/* </settings checks> */