bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainenstatic void client_connected(struct master_service_connection *conn)
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen master_service_client_connection_accept(conn);
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen notify_connection_create(conn->fd, conn->fifo);
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen sets = master_service_settings_get_others(master_service);
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen ret = net_gethostbyname(set->replicator_host, &ips, &ips_count);
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen i_fatal("replicator_host: gethostbyname(%s) failed: %s",
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen replicator = replicator_connection_create_inet(ips, ips_count,
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen replicator = replicator_connection_create_unix(set->replicator_host,
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen const struct setting_parser_info *set_roots[] = {
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4Timo Sirainen master_service = master_service_init("aggregator", 0, &argc, &argv, "");
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen if (master_service_settings_read_simple(master_service, set_roots,
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen i_fatal("Error reading configuration: %s", error);
447e086422f1ab7cc16833583ed70a4af7a84bc5Timo Sirainen master_service_init_log(master_service, "aggregator: ");
816d20be0cf95fc4eb1a8aa716639e73b8ba525eMartti Rannanjärvi restrict_access_by_env(RESTRICT_ACCESS_FLAG_ALLOW_ROOT, NULL);