From: Timo Sirainen Date: Tue, 30 May 2023 10:36:08 +0000 (+0300) Subject: doveadm: Don't connect to stats process for "fast" commands X-Git-Tag: 2.4.0~2717 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72bf44c19ef258feac30128776eb905c8e477300;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Don't connect to stats process for "fast" commands This especially caused "doveadm stop" to unnecessarily connect to stats process, which prevented master process from immediately shutting down without 1 second delay. --- diff --git a/src/doveadm/doveadm.c b/src/doveadm/doveadm.c index 9bc9fc88de..286169aba3 100644 --- a/src/doveadm/doveadm.c +++ b/src/doveadm/doveadm.c @@ -316,6 +316,7 @@ int main(int argc, char *argv[]) /* special case commands: even if there is something wrong with the config (e.g. mail_plugins), don't fail these commands */ + master_service->flags |= MASTER_SERVICE_FLAG_DONT_SEND_STATS; if (strcmp(cmd_name, "help") != 0) doveadm_read_settings(); quick_init = TRUE;