From b1aa228609f9afde184c7facc0c53e3cf6dbe1e3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 6 Apr 2013 21:01:41 +0300 Subject: [PATCH] replicator: Don't create replicator-doveadm socket by default. Also removed the service replicator { process_min_avail=1 } requirement. This new way allows replicator to give a flag to dsync so it will try to notify the replicator process when user gets synced, which can be silently ignored even if it fails (replica server doesn't need to have replicator or even Dovecot itself running). --- src/replication/replicator/replicator-settings.c | 2 +- src/replication/replicator/replicator.c | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/replication/replicator/replicator-settings.c b/src/replication/replicator/replicator-settings.c index 0c2968c483..127c36657c 100644 --- a/src/replication/replicator/replicator-settings.c +++ b/src/replication/replicator/replicator-settings.c @@ -9,7 +9,7 @@ /* */ static struct file_listener_settings replicator_unix_listeners_array[] = { { "replicator", 0600, "$default_internal_user", "" }, - { "replicator-doveadm", 0600, "$default_internal_user", "" } + { "replicator-doveadm", 0, "$default_internal_user", "" } }; static struct file_listener_settings *replicator_unix_listeners[] = { &replicator_unix_listeners_array[0], diff --git a/src/replication/replicator/replicator.c b/src/replication/replicator/replicator.c index fc96937574..a1d90e24f1 100644 --- a/src/replication/replicator/replicator.c +++ b/src/replication/replicator/replicator.c @@ -123,13 +123,6 @@ int main(int argc, char *argv[]) i_fatal("Error reading configuration: %s", error); master_service_init_log(master_service, "replicator: "); - /* this check is here mainly so that "doveadm replicator" commands - don't accidentally start an unconfigured replicator */ - if (master_service_get_process_min_avail(master_service) == 0) { - i_fatal("Replicator not configured: " - "service replicator { process_min_avail } must be 1"); - } - restrict_access_by_env(NULL, FALSE); restrict_access_allow_coredumps(TRUE); master_service_init_finish(master_service); -- 2.47.3