prometheus-unifi-exporter: make ordering more robust

This commit is contained in:
Robin Gloster 2017-08-22 20:22:31 +02:00
parent e6b77e2198
commit ce7e2c06b1
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -83,6 +83,7 @@ in {
description = "Prometheus exporter for UniFi Controller metrics";
unitConfig.Documentation = "https://github.com/mdlayher/unifi_exporter";
wantedBy = [ "multi-user.target" ];
after = optional config.services.unifi.enable "unifi.service";
serviceConfig = {
User = "nobody";
Restart = "always";