bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen#include "lib.h"
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen#include "buffer.h"
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen#include "settings-parser.h"
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen#include "service-settings.h"
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen#include <stddef.h>
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen/* <settings checks> */
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainenstatic struct file_listener_settings indexer_worker_unix_listeners_array[] = {
0579b94a7fd08929d71453257d97aa3b58d7430bTimo Sirainen { "indexer-worker", 0600, "$default_internal_user", "" }
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen};
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainenstatic struct file_listener_settings *indexer_worker_unix_listeners[] = {
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen &indexer_worker_unix_listeners_array[0]
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen};
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainenstatic buffer_t indexer_worker_unix_listeners_buf = {
da7f1a07f583df8905684a7b78469960afd7c78dPhil Carmody indexer_worker_unix_listeners, sizeof(indexer_worker_unix_listeners), { NULL, }
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen};
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen/* </settings checks> */
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainenstruct service_settings indexer_worker_service_settings = {
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .name = "indexer-worker",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .protocol = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .type = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .executable = "indexer-worker",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .user = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .group = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .privileged_group = "",
d7952621661d9a9102393d27d061dad3d22083fdTimo Sirainen .extra_groups = "$default_internal_group",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .chroot = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .drop_priv_before_exec = FALSE,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .process_min_avail = 0,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .process_limit = 10,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .client_limit = 1,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .service_count = 0,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .idle_kill = 0,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .vsz_limit = (uoff_t)-1,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .unix_listeners = { { &indexer_worker_unix_listeners_buf,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen sizeof(indexer_worker_unix_listeners[0]) } },
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .fifo_listeners = ARRAY_INIT,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .inet_listeners = ARRAY_INIT
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen};