git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5317
91ce42f0-d328-0410-95d8-
f526ca767f89
# 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
check_for_zombie_jobs()
{
- scripts/check_for_zombie_jobs $1
+ scripts/check_for_zombie_jobs $*
}
change_jobname()