From: Kern Sibbald Date: Mon, 15 Nov 2004 22:44:40 +0000 (+0000) Subject: Update for new job output X-Git-Tag: Release-1.36.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d355e1f66dce9d6ea0048b648f713f942321c35a;p=thirdparty%2Fbacula.git Update for new job output git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1699 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/bacula-dir-tape.conf.in b/regress/scripts/bacula-dir-tape.conf.in index 48d89b6eb..9cbb55772 100644 --- a/regress/scripts/bacula-dir-tape.conf.in +++ b/regress/scripts/bacula-dir-tape.conf.in @@ -20,7 +20,7 @@ Director { # define myself PidDirectory = "@piddir@" Maximum Concurrent Jobs = 4 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" - Messages = Standard + Messages = Daemon } # @@ -122,6 +122,16 @@ Messages { append = "@working_dir@/log" = all, !skipped } +# +# Message delivery for daemon messages (no job). +Messages { + Name = Daemon + mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r" + mail = @job_email@ = all, !skipped + console = all, !skipped, !saved + append = "@working_dir@/log" = all, !skipped +} + # Default pool definition Pool { diff --git a/regress/scripts/test-bacula-dir.conf.in b/regress/scripts/test-bacula-dir.conf.in index 57286c39d..e13bef283 100644 --- a/regress/scripts/test-bacula-dir.conf.in +++ b/regress/scripts/test-bacula-dir.conf.in @@ -21,7 +21,7 @@ Director { # define myself SubSysDirectory = "@subsysdir@" Maximum Concurrent Jobs = 4 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password - Messages = Standard + Messages = Daemon } # @@ -287,6 +287,15 @@ Messages { append = "@working_dir@/log" = all, !skipped } +# +# Message delivery for daemon messages (no job). +Messages { + Name = Daemon + mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r" + mail = @job_email@ = all, !skipped + console = all, !skipped, !saved + append = "@working_dir@/log" = all, !skipped +} # Default pool definition Pool { diff --git a/regress/tests/auto-label-test b/regress/tests/auto-label-test index 347bb8cbc..7f248bac8 100755 Binary files a/regress/tests/auto-label-test and b/regress/tests/auto-label-test differ diff --git a/regress/tests/backup-bacula-tape b/regress/tests/backup-bacula-tape index 17478dffa..4eedff42f 100755 Binary files a/regress/tests/backup-bacula-tape and b/regress/tests/backup-bacula-tape differ diff --git a/regress/tests/backup-bacula-test b/regress/tests/backup-bacula-test index 84dec154a..ecf1d3bef 100755 Binary files a/regress/tests/backup-bacula-test and b/regress/tests/backup-bacula-test differ diff --git a/regress/tests/bextract-test b/regress/tests/bextract-test index 1521ab67a..8a55c19da 100755 Binary files a/regress/tests/bextract-test and b/regress/tests/bextract-test differ diff --git a/regress/tests/bscan-tape b/regress/tests/bscan-tape index de01721b3..8858b6a87 100755 Binary files a/regress/tests/bscan-tape and b/regress/tests/bscan-tape differ diff --git a/regress/tests/bscan-test b/regress/tests/bscan-test index 310a1806c..3194a6514 100755 Binary files a/regress/tests/bscan-test and b/regress/tests/bscan-test differ diff --git a/regress/tests/bsr-opt-test b/regress/tests/bsr-opt-test index 74002e23a..7284cc156 100755 Binary files a/regress/tests/bsr-opt-test and b/regress/tests/bsr-opt-test differ diff --git a/regress/tests/compressed-test b/regress/tests/compressed-test index f2032ef7b..6bd5d415b 100755 Binary files a/regress/tests/compressed-test and b/regress/tests/compressed-test differ diff --git a/regress/tests/concurrent-jobs-test b/regress/tests/concurrent-jobs-test index e15c3ba3c..1f4deeb59 100755 --- a/regress/tests/concurrent-jobs-test +++ b/regress/tests/concurrent-jobs-test @@ -58,9 +58,9 @@ END_OF_DATA scripts/check_for_zombie_jobs storage=File bin/bacula stop 2>&1 >/dev/null -grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null +grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null bstat=$? -grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null +grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null rstat=$? diff tmp/largefile tmp/bacula-restores${cwd}/tmp/largefile 2>&1 >/dev/null if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then diff --git a/regress/tests/decremental-test b/regress/tests/decremental-test index fc1ce98c1..41b274350 100755 Binary files a/regress/tests/decremental-test and b/regress/tests/decremental-test differ diff --git a/regress/tests/fixed-block-size-tape b/regress/tests/fixed-block-size-tape index 36faadf51..23fe49a39 100755 Binary files a/regress/tests/fixed-block-size-tape and b/regress/tests/fixed-block-size-tape differ diff --git a/regress/tests/four-concurrent-jobs-tape b/regress/tests/four-concurrent-jobs-tape index 48109cbb8..17f9d350f 100755 Binary files a/regress/tests/four-concurrent-jobs-tape and b/regress/tests/four-concurrent-jobs-tape differ diff --git a/regress/tests/four-concurrent-jobs-test b/regress/tests/four-concurrent-jobs-test index 7d2d5329b..97772f712 100755 Binary files a/regress/tests/four-concurrent-jobs-test and b/regress/tests/four-concurrent-jobs-test differ diff --git a/regress/tests/four-jobs-tape b/regress/tests/four-jobs-tape index 9d930bf25..90deecfe2 100755 Binary files a/regress/tests/four-jobs-tape and b/regress/tests/four-jobs-tape differ diff --git a/regress/tests/four-jobs-test b/regress/tests/four-jobs-test index 2356303c2..092d88a94 100755 Binary files a/regress/tests/four-jobs-test and b/regress/tests/four-jobs-test differ diff --git a/regress/tests/incremental-2tape b/regress/tests/incremental-2tape index 6ed796897..695a033ee 100755 Binary files a/regress/tests/incremental-2tape and b/regress/tests/incremental-2tape differ diff --git a/regress/tests/incremental-tape b/regress/tests/incremental-tape index 602df9cd6..9a5b39605 100755 Binary files a/regress/tests/incremental-tape and b/regress/tests/incremental-tape differ diff --git a/regress/tests/incremental-test b/regress/tests/incremental-test index b740ccf0b..7b0581c25 100755 Binary files a/regress/tests/incremental-test and b/regress/tests/incremental-test differ diff --git a/regress/tests/query-test b/regress/tests/query-test index 11a88cb31..4c6523b44 100755 Binary files a/regress/tests/query-test and b/regress/tests/query-test differ diff --git a/regress/tests/recycle-test b/regress/tests/recycle-test index 6dbc60c5a..df8a0ec7d 100755 Binary files a/regress/tests/recycle-test and b/regress/tests/recycle-test differ diff --git a/regress/tests/restore-by-file-tape b/regress/tests/restore-by-file-tape index 21013b36c..45ff1755f 100755 Binary files a/regress/tests/restore-by-file-tape and b/regress/tests/restore-by-file-tape differ diff --git a/regress/tests/restore-by-file-test b/regress/tests/restore-by-file-test index 9ee995895..5d1762c13 100755 Binary files a/regress/tests/restore-by-file-test and b/regress/tests/restore-by-file-test differ diff --git a/regress/tests/restore-disk-seek-test b/regress/tests/restore-disk-seek-test index 76372a363..c9dba1790 100755 Binary files a/regress/tests/restore-disk-seek-test and b/regress/tests/restore-disk-seek-test differ diff --git a/regress/tests/restore2-by-file-test b/regress/tests/restore2-by-file-test index 53a259889..3d31a2bad 100755 Binary files a/regress/tests/restore2-by-file-test and b/regress/tests/restore2-by-file-test differ diff --git a/regress/tests/six-vol-test b/regress/tests/six-vol-test index bf55e1ae8..cb10f7314 100755 Binary files a/regress/tests/six-vol-test and b/regress/tests/six-vol-test differ diff --git a/regress/tests/small-file-size-tape b/regress/tests/small-file-size-tape index c98ab3805..9b7fa3faa 100755 Binary files a/regress/tests/small-file-size-tape and b/regress/tests/small-file-size-tape differ diff --git a/regress/tests/span-vol-test b/regress/tests/span-vol-test index 5136ab9a4..2b68dc0d9 100755 Binary files a/regress/tests/span-vol-test and b/regress/tests/span-vol-test differ diff --git a/regress/tests/sparse-compressed-test b/regress/tests/sparse-compressed-test index 11fc42a56..758ccef9f 100755 Binary files a/regress/tests/sparse-compressed-test and b/regress/tests/sparse-compressed-test differ diff --git a/regress/tests/sparse-test b/regress/tests/sparse-test index c1c7328bd..33ee35f73 100755 Binary files a/regress/tests/sparse-test and b/regress/tests/sparse-test differ diff --git a/regress/tests/two-jobs-test b/regress/tests/two-jobs-test index e7d110bce..9ae89ea5a 100755 Binary files a/regress/tests/two-jobs-test and b/regress/tests/two-jobs-test differ diff --git a/regress/tests/two-vol-test b/regress/tests/two-vol-test index 1a8013346..adef8e4d1 100755 Binary files a/regress/tests/two-vol-test and b/regress/tests/two-vol-test differ diff --git a/regress/tests/two-volume-tape b/regress/tests/two-volume-tape index 2f603f9ee..d33e4e58b 100755 Binary files a/regress/tests/two-volume-tape and b/regress/tests/two-volume-tape differ diff --git a/regress/tests/verify-vol-test b/regress/tests/verify-vol-test index 35b404406..0fcc2ea5b 100755 Binary files a/regress/tests/verify-vol-test and b/regress/tests/verify-vol-test differ diff --git a/regress/tests/weird-files-test b/regress/tests/weird-files-test index 07aaf8b80..b4623fae5 100755 Binary files a/regress/tests/weird-files-test and b/regress/tests/weird-files-test differ diff --git a/regress/tests/weird-files2-test b/regress/tests/weird-files2-test index 0766cc63d..3d16e77b1 100755 Binary files a/regress/tests/weird-files2-test and b/regress/tests/weird-files2-test differ