aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/prometheus-borgmatic-exporter.service3
-rw-r--r--contrib/prometheus-borgmatic-exporter.timer3
2 files changed, 4 insertions, 2 deletions
diff --git a/contrib/prometheus-borgmatic-exporter.service b/contrib/prometheus-borgmatic-exporter.service
index 4551d34..706a4f5 100644
--- a/contrib/prometheus-borgmatic-exporter.service
+++ b/contrib/prometheus-borgmatic-exporter.service
@@ -1,6 +1,7 @@
[Unit]
Description=Borgmatic Prometheus metrics exporter
-After=network.target
+After=network-online.target
+Wants=network-online.target
[Service]
Type=oneshot
diff --git a/contrib/prometheus-borgmatic-exporter.timer b/contrib/prometheus-borgmatic-exporter.timer
index 61fa6a8..951a774 100644
--- a/contrib/prometheus-borgmatic-exporter.timer
+++ b/contrib/prometheus-borgmatic-exporter.timer
@@ -1,6 +1,7 @@
[Unit]
Description=Run Borgmatic Prometheus metrics exporter daily
-After=network.target
+After=network-online.target
+Wants=network-online.target
[Timer]
OnCalendar=daily