From 5862ff4cc2fc9d505a1ab75f5f38b92061e2df68 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 4 Oct 2023 20:43:57 -0500 Subject: [PATCH] local_exporter: Remove After=zincati dependency For some reason, the *zincati.service* unit has an `After=` dependency on *multi-user.target*. This creates a dependency loop between *local_exporter.service* and *zincati.service* if the former has an `After=` dependency on the latter an an (implicit) `Before=` dependency on *multi-user.target*. systemd will resolve this loop by removing one or the other units from the bootup sequence, so either Zincati or the local exporter will not start at boot. We can avoid this dependency loop by removing the `After=` dependency from *local_exporter.service*. This may cause requests for Zincati metrics to fail if it happens to come in after the local exporter starts but before Zincati does, but this is unlikely to actually be an issue. --- local_exporter.container | 1 - 1 file changed, 1 deletion(-) diff --git a/local_exporter.container b/local_exporter.container index aa15fae..b1a361b 100644 --- a/local_exporter.container +++ b/local_exporter.container @@ -1,6 +1,5 @@ [Unit] Description=Bridge for local Prometheus metrics -After=zincati.service After=network.target [Container]