From 918b7f656ade4e0fed8d9f3afc7687ac8070b2ed Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sun, 11 Feb 2018 13:36:36 -0500 Subject: [PATCH] [IMP] kill service if sync fails This, used in combination with a scheduler, clearly marks "problem" to the cluster operator --- backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/backup.sh b/backup.sh index 95a685d..21434e6 100755 --- a/backup.sh +++ b/backup.sh @@ -30,6 +30,7 @@ else echo "Backup Failed with Status ${rc}" restic unlock copyErrorLog + kill 1 fi if [ -n "${RESTIC_FORGET_ARGS}" ]; then