From d5370c829b0b051524355518172648d4bfc78f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Mon, 30 Nov 2020 08:35:25 +0100 Subject: [PATCH] Properly (re)start borgbackup exporter --- type/__prometheus_borgbackup_exporter/gencode-remote | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/type/__prometheus_borgbackup_exporter/gencode-remote b/type/__prometheus_borgbackup_exporter/gencode-remote index 7888263..67b121a 100755 --- a/type/__prometheus_borgbackup_exporter/gencode-remote +++ b/type/__prometheus_borgbackup_exporter/gencode-remote @@ -16,5 +16,6 @@ pip install prometheus_client pip install dateutils # Start service -service prometheus-borgbackup-exporter start +service prometheus-borgbackup-exporter --ifstarted restart +service prometheus-borgbackup-exporter --ifstopped start EOF