From 619f4263e925967d3e5533a6a9a6673eea63d0a3 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 10 Jan 2022 11:17:20 +0100 Subject: [PATCH] print if someone is already running --- templates/restic_script_Linux.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/restic_script_Linux.j2 b/templates/restic_script_Linux.j2 index 981de32..cfd3751 100644 --- a/templates/restic_script_Linux.j2 +++ b/templates/restic_script_Linux.j2 @@ -8,6 +8,7 @@ trap "rm -f $pid" SIGSEGV trap "rm -f $pid" SIGINT if [ -e $pid ]; then + echo "A nother version of this restic backup script is already running!" {% if item.mail_on_error is defined and item.mail_on_error == true %} mail -s "starting restic backup failed on {{ ansible_hostname }}" {{ item.mail_address }} <<< "Another restic backup process is already running. We canceled starting a new restic backup script running at {{ ansible_hostname }} at $(date -u '+%Y-%m-%d %H:%M:%S'). {%- if item.src is defined -%}