From: Alexander Barton Date: Tue, 18 Aug 2015 09:08:38 +0000 (+0200) Subject: Exit with code 7 when not all jobs have been run X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=28db532889a6e5ce57ec9d32bef793c6a621a41c;p=backup-script.git Exit with code 7 when not all jobs have been run --- 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-