From: Eric Bollengier Date: Thu, 9 Aug 2007 08:48:42 +0000 (+0000) Subject: ebl Add a optionnal client= option to check_for_zombie_jobs X-Git-Tag: Release-7.0.0~5869 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e88bb88a12c58df65d09efa7773980401fa4335;p=bacula%2Fbacula ebl Add a optionnal client= option to check_for_zombie_jobs git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5317 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/check_for_zombie_jobs b/regress/scripts/check_for_zombie_jobs index ff16e1d415..e2a7e6ffa0 100755 --- a/regress/scripts/check_for_zombie_jobs +++ b/regress/scripts/check_for_zombie_jobs @@ -3,11 +3,20 @@ # Check for zombie jobs (not terminated). # Also scan logs for ERROR messages # + +# check_for_zombie_jobs storage=STORAGE [client=localhost-fd] + +if [ $# = 2 ] ; then + client="$2" +else + client="client" +fi + bin/bconsole -c bin/bconsole.conf <&1 >/dev/null @output tmp/dir.out status dir @output tmp/fd.out -status client +status $client @output tmp/sd.out status $1 @output diff --git a/regress/scripts/functions b/regress/scripts/functions index 73734f6a24..4791db9c7a 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -84,7 +84,7 @@ stop_bacula() check_for_zombie_jobs() { - scripts/check_for_zombie_jobs $1 + scripts/check_for_zombie_jobs $* } change_jobname()