bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2014-2018 Dovecot authors, see the included COPYING file */
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainenstatic void client_connected(struct master_service_connection *conn)
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen master_service_client_connection_accept(conn);
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen imap_hibernate_client_create(conn->fd, debug);
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen master_service = master_service_init("imap-hibernate", service_flags,
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen while ((c = master_getopt(master_service)) > 0) {
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen if (master_service_settings_read_simple(master_service, NULL, &error) < 0)
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen i_fatal("Error reading configuration: %s", error);
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen master_service_init_log(master_service, "imap-hibernate: ");
816d20be0cf95fc4eb1a8aa716639e73b8ba525eMartti Rannanjärvi restrict_access_by_env(RESTRICT_ACCESS_FLAG_ALLOW_ROOT, NULL);