From 29361b7436750f9c9ec425b88fd38d0136243760 Mon Sep 17 00:00:00 2001 From: godog Date: Sat, 21 Mar 2020 18:38:56 +0100 Subject: [PATCH] Buster compatibility Buster ships with Dovecot 2.3, thus switch to "old_stats". See also https://doc.dovecot.org/configuration_manual/stats/old_statistics/ --- debian/dovecot-exporter.default | 1 + debian/dovecot-exporter.service | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/dovecot-exporter.default b/debian/dovecot-exporter.default index 731780a..6e6a481 100644 --- a/debian/dovecot-exporter.default +++ b/debian/dovecot-exporter.default @@ -1,2 +1,3 @@ ADDR=:9166 SCOPES=global +DOVECOT_SOCKET=/var/run/dovecot/old-stats diff --git a/debian/dovecot-exporter.service b/debian/dovecot-exporter.service index e2fe4e0..bfdcbc7 100644 --- a/debian/dovecot-exporter.service +++ b/debian/dovecot-exporter.service @@ -5,7 +5,7 @@ After=dovecot.service [Service] Type=simple EnvironmentFile=/etc/default/dovecot-exporter -ExecStart=/usr/bin/dovecot-exporter --dovecot.scopes $SCOPES --web.listen-address $ADDR +ExecStart=/usr/bin/dovecot-exporter --dovecot.scopes $SCOPES --web.listen-address $ADDR --dovecot.socket-path $DOVECOT_SOCKET Restart=on-failure User=dovecot -- GitLab