]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ipc: Disable connecting to stats
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 4 Oct 2021 11:32:51 +0000 (13:32 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 7 Oct 2021 06:11:20 +0000 (06:11 +0000)
This avoids reconnect errors if stats process crashes.

src/ipc/main.c

index f25d1774b0afa7d8763d5ab5947021200e347196..ebd4b228b0b79ffdab946f53b0dc1f2f4d4919d6 100644 (file)
@@ -40,6 +40,11 @@ static void ipc_die(void)
 int main(int argc, char *argv[])
 {
        const enum master_service_flags service_flags =
+               /* This process likely won't need to send any stats. It's also
+                  problematic because it's chrooted to empty directory, so it
+                  can't reconnect to stats if it gets disconnected. So at
+                  least for now disable connecting to stats entirely. */
+               MASTER_SERVICE_FLAG_DONT_SEND_STATS |
                MASTER_SERVICE_FLAG_UPDATE_PROCTITLE;
        const char *error;