]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Don't connect to stats process for "fast" commands
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 30 May 2023 10:36:08 +0000 (13:36 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 1 Jun 2023 06:09:20 +0000 (06:09 +0000)
This especially caused "doveadm stop" to unnecessarily connect to stats
process, which prevented master process from immediately shutting down
without 1 second delay.

src/doveadm/doveadm.c

index 9bc9fc88dea5f51bf2c9cfd86151d82db3671501..286169aba3c444d5eb33b2e7f0c3a9106f1d46f4 100644 (file)
@@ -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;