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.
parent
dd3be7a24a
commit
5862ff4cc2
|
@ -1,6 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Bridge for local Prometheus metrics
|
Description=Bridge for local Prometheus metrics
|
||||||
After=zincati.service
|
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
|
Loading…
Reference in New Issue