bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
db693bf6fcae96d834567f1782257517b7207655Timo Sirainenstatic void client_connected(struct master_service_connection *conn)
db693bf6fcae96d834567f1782257517b7207655Timo Sirainen master_service_client_connection_accept(conn);
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4Timo Sirainen master_service = master_service_init("config", 0, &argc, &argv, "");
e0740628f6ca05f4bc79a9d8a90b650f4d38d4d0Timo Sirainen master_service_init_log(master_service, "config: ");
816d20be0cf95fc4eb1a8aa716639e73b8ba525eMartti Rannanjärvi restrict_access_by_env(RESTRICT_ACCESS_FLAG_ALLOW_ROOT, NULL);
ec1a4f4306496380e9d96ee08a3718a669d0875aTimo Sirainen path = master_service_get_config_path(master_service);
633a3da9d3e9a5befd3405f6651043a6bdd327cbTimo Sirainen if (config_parse_file(path, TRUE, NULL, &error) <= 0)
1af33d3c483b1759c4b184937b5f9829afb6b238Timo Sirainen /* notify about our success only after successfully parsing the
1af33d3c483b1759c4b184937b5f9829afb6b238Timo Sirainen config file, so if the parsing fails, master won't immediately
1af33d3c483b1759c4b184937b5f9829afb6b238Timo Sirainen just recreate this process (and fail again and so on). */