From 28db532889a6e5ce57ec9d32bef793c6a621a41c Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 18 Aug 2015 11:08:38 +0200 Subject: [PATCH] Exit with code 7 when not all jobs have been run --- README.md | 1 + bin/backup-script | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index f816c05..23bfbfe 100644 --- a/README.md +++ b/README.md @@ -161,4 +161,5 @@ definition files are automatically mapped to the new backup-script variables: - 4: PID-file exists! - 5: Pre-exec command failed! - 6: There have been systems with errors! +- 7: Not all jobs were run! - 9: Aborted (CTRL-C)! diff --git a/bin/backup-script b/bin/backup-script index 2b9f7d7..2c6fd82 100755 --- a/bin/backup-script +++ b/bin/backup-script @@ -639,6 +639,8 @@ if [ $count_started -ne $count_ok ]; then echo "-----> THERE HAVE BEEN ERRORS! <-----" echo exit 6 +elif [ $count_all -ne $count_started ]; then + exit 7 fi # -eof- -- 2.39.2