stats-settings.c revision 8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765c
/* Copyright (c) 2009-2013 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "settings-parser.h"
#include "service-settings.h"
#include "stats-settings.h"
/* <settings checks> */
static struct file_listener_settings stats_unix_listeners_array[] = {
{ "stats", 0600, "", "" }
};
static struct file_listener_settings *stats_unix_listeners[] = {
};
static buffer_t stats_unix_listeners_buf = {
stats_unix_listeners, sizeof(stats_unix_listeners), { 0, }
};
static struct file_listener_settings stats_fifo_listeners_array[] = {
{ "stats-mail", 0600, "", "" }
};
static struct file_listener_settings *stats_fifo_listeners[] = {
};
static buffer_t stats_fifo_listeners_buf = {
sizeof(stats_fifo_listeners), { 0, }
};
/* </settings checks> */
struct service_settings stats_service_settings = {
.name = "stats",
.protocol = "",
.type = "",
.executable = "stats",
.user = "$default_internal_user",
.group = "",
.privileged_group = "",
.extra_groups = "",
.chroot = "empty",
.process_min_avail = 0,
.process_limit = 1,
.client_limit = 0,
.service_count = 0,
.unix_listeners = { { &stats_unix_listeners_buf,
sizeof(stats_unix_listeners[0]) } },
.fifo_listeners = { { &stats_fifo_listeners_buf,
sizeof(stats_fifo_listeners[0]) } },
};
/* we're kind of kludging here to avoid "stats_" prefix in the struct fields */
static const struct setting_define stats_setting_defines[] = {
};
const struct stats_settings stats_default_settings = {
.command_min_time = 60,
};
const struct setting_parser_info stats_setting_parser_info = {
.module_name = "stats",
.struct_size = sizeof(struct stats_settings),
};
const struct stats_settings *stats_settings;