From d54a148ab34b18a2012ff7fc631547525d8189b4 Mon Sep 17 00:00:00 2001 From: ko-zu Date: Sun, 5 May 2019 00:45:22 +0900 Subject: [PATCH] Fix systemd service startup ordering network.target does not provide working IP address. We have to wait network-online.target instead. --- templates/node_exporter.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/node_exporter.service.j2 b/templates/node_exporter.service.j2 index 505fa4b..b8ff96e 100644 --- a/templates/node_exporter.service.j2 +++ b/templates/node_exporter.service.j2 @@ -2,7 +2,7 @@ [Unit] Description=Prometheus Node Exporter -After=network.target +After=network-online.target [Service] Type=simple