]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add a optionnal client= option to check_for_zombie_jobs
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 9 Aug 2007 08:48:42 +0000 (08:48 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 9 Aug 2007 08:48:42 +0000 (08:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5317 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/check_for_zombie_jobs
regress/scripts/functions

index ff16e1d415744f056ad0e75ae06da17bee5fe863..e2a7e6ffa0cc2ade95cd9e9dd4394db9f9e76a2e 100755 (executable)
@@ -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 <<END_OF_DATA 2>&1 >/dev/null
 @output tmp/dir.out
 status dir
 @output tmp/fd.out
-status client
+status $client
 @output tmp/sd.out
 status $1
 @output
index 73734f6a24d0941a5f4a8ab8c8f4ee80816a74d0..4791db9c7a247da2cf47ce5042ab4933cd82e8ee 100644 (file)
@@ -84,7 +84,7 @@ stop_bacula()
 
 check_for_zombie_jobs()
 {
-   scripts/check_for_zombie_jobs $1
+   scripts/check_for_zombie_jobs $*
 }
 
 change_jobname()