prometheus-unifi-exporter: make ordering more robust
This commit is contained in:
parent
e6b77e2198
commit
ce7e2c06b1
@ -83,6 +83,7 @@ in {
|
|||||||
description = "Prometheus exporter for UniFi Controller metrics";
|
description = "Prometheus exporter for UniFi Controller metrics";
|
||||||
unitConfig.Documentation = "https://github.com/mdlayher/unifi_exporter";
|
unitConfig.Documentation = "https://github.com/mdlayher/unifi_exporter";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = optional config.services.unifi.enable "unifi.service";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "nobody";
|
User = "nobody";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user