dovecot-2.2: replicator: If replicator is unconfigured, fail at ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 4 23:35:37 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/c67d787164fa
changeset: 16179:c67d787164fa
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 04 23:35:27 2013 +0300
description:
replicator: If replicator is unconfigured, fail at startup.
diffstat:
src/replication/replicator/replicator.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r c32bfc54bc50 -r c67d787164fa src/replication/replicator/replicator.c
--- a/src/replication/replicator/replicator.c Thu Apr 04 23:35:08 2013 +0300
+++ b/src/replication/replicator/replicator.c Thu Apr 04 23:35:27 2013 +0300
@@ -123,6 +123,13 @@
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);
More information about the dovecot-cvs
mailing list