]> arthur.barton.de Git - backup-script.git/commitdiff
Exit with code 7 when not all jobs have been run
authorAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 09:08:38 +0000 (11:08 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 09:08:38 +0000 (11:08 +0200)
README.md
bin/backup-script

index f816c05c6d0766b0384a6150fd4463be966562c0..23bfbfe8bdeea3358c1f5fd7c91882fe50014ed6 100644 (file)
--- 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)!
index 2b9f7d7f2e91f4c45cdea62581bc211bbf1a934d..2c6fd823704adf916c7837c673e6ff971a742e71 100755 (executable)
@@ -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-