diff options
| author | Dennis Fink | 2026-09-27 08:37:37 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-09-27 08:37:37 +0200 |
| commit | 19710ce4d51e3104618716dd95b9f8bd5ea4d609 (patch) | |
| tree | 797ab94ec5137406a8ce593df3cc3c88c72b1cb8 /contrib/prometheus-borgmatic-exporter.service | |
| parent | a8619c1102d2fda5c63597120bbe45c715b83167 (diff) | |
| download | prometheus-borgmatic-exporter-19710ce4d51e3104618716dd95b9f8bd5ea4d609.tar.gz prometheus-borgmatic-exporter-19710ce4d51e3104618716dd95b9f8bd5ea4d609.zip | |
fix(systemd): wait for network to be online
Ensure the exporter service and timer are started only after the network
is considered online, reducing failures when repositories require
network access.
Diffstat (limited to '')
| -rw-r--r-- | contrib/prometheus-borgmatic-exporter.service | 3 |
1 files changed, 2 insertions, 1 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 |
