]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/check_for_zombie_jobs
Check for file count mismatch
[bacula/bacula] / regress / scripts / check_for_zombie_jobs
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