bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2009-2018 Dovecot authors, see the included COPYING file */
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen#include "lib.h"
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen#include "buffer.h"
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen#include "settings-parser.h"
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen#include "service-settings.h"
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen#include <stddef.h>
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen/* <settings checks> */
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainenstatic struct file_listener_settings log_unix_listeners_array[] = {
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen { "log-errors", 0600, "", "" }
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen};
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainenstatic struct file_listener_settings *log_unix_listeners[] = {
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen &log_unix_listeners_array[0]
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen};
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainenstatic buffer_t log_unix_listeners_buf = {
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen log_unix_listeners,
da7f1a07f583df8905684a7b78469960afd7c78dPhil Carmody sizeof(log_unix_listeners), { NULL, }
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen};
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen/* </settings checks> */
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainenstruct service_settings log_service_settings = {
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .name = "log",
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .protocol = "",
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .type = "log",
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .executable = "log",
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .user = "",
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .group = "",
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .privileged_group = "",
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .extra_groups = "",
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .chroot = "",
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .drop_priv_before_exec = FALSE,
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .process_min_avail = 0,
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .process_limit = 1,
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .client_limit = 0,
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .service_count = 0,
8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765cTimo Sirainen .idle_kill = UINT_MAX,
f7f25f9e1a38678d0e97d2e609beac16285fac6bTimo Sirainen .vsz_limit = (uoff_t)-1,
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen .unix_listeners = { { &log_unix_listeners_buf,
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen sizeof(log_unix_listeners[0]) } },
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen .fifo_listeners = ARRAY_INIT,
35fcdde46a71ac151c2518d48c841019f1181bb2Timo Sirainen .inet_listeners = ARRAY_INIT,
35fcdde46a71ac151c2518d48c841019f1181bb2Timo Sirainen
35fcdde46a71ac151c2518d48c841019f1181bb2Timo Sirainen .process_limit_1 = TRUE
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen};
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen