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 Sirainenextern const struct setting_parser_info service_setting_parser_info;
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen/* <settings checks> */
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainenstatic struct file_listener_settings indexer_unix_listeners_array[] = {
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen { "indexer", 0666, "", "" }
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen};
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainenstatic struct file_listener_settings *indexer_unix_listeners[] = {
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen &indexer_unix_listeners_array[0]
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen};
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainenstatic buffer_t indexer_unix_listeners_buf = {
da7f1a07f583df8905684a7b78469960afd7c78dPhil Carmody indexer_unix_listeners, sizeof(indexer_unix_listeners), { NULL, }
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen};
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen/* </settings checks> */
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainenstruct service_settings indexer_service_settings = {
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .name = "indexer",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .protocol = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .type = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .executable = "indexer",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .user = "$default_internal_user",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .group = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .privileged_group = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .extra_groups = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .chroot = "",
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .drop_priv_before_exec = FALSE,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .process_min_avail = 0,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .process_limit = 1,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .client_limit = 0,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .service_count = 0,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .idle_kill = 0,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .vsz_limit = (uoff_t)-1,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .unix_listeners = { { &indexer_unix_listeners_buf,
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen sizeof(indexer_unix_listeners[0]) } },
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen .fifo_listeners = ARRAY_INIT,
3d4648e56d079f9778fc72450ccc604ffc05babcTimo Sirainen .inet_listeners = ARRAY_INIT,
3d4648e56d079f9778fc72450ccc604ffc05babcTimo Sirainen
3d4648e56d079f9778fc72450ccc604ffc05babcTimo Sirainen .process_limit_1 = TRUE
d9e404180ff26dbbaea68534a5f176765022b76bTimo Sirainen};