]> git.sur5r.net Git - bacula/bacula/commitdiff
- Modify mtx-changer to wait a maximum of 300 seconds.
authorKern Sibbald <kern@sibbald.com>
Tue, 26 Jul 2005 09:34:29 +0000 (09:34 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 26 Jul 2005 09:34:29 +0000 (09:34 +0000)
- Do restart of failed jobs only for Backups job types.
- A number of DVD updates from Nicolas.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2257 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kes-1.37
bacula/scripts/mtx-changer.in
bacula/src/dird/jobq.c
bacula/src/version.h

index 0a8ada983477db365252325eba16fb25380da279..98a506754df5717dd5889389a6f1fac6449c8642 100644 (file)
@@ -4,6 +4,10 @@
 General:
 
 Changes to 1.37.32:
+26Jul05
+- Modify mtx-changer to wait a maximum of 300 seconds.
+- Do restart of failed jobs only for Backups job types.
+- A number of DVD updates from Nicolas.
 24Jul05
 - Turn off old service helper code in Win32.
 - Correct Messages bug found by Phil in stored.
index c153426f2885e8d013dbd678f751b24ea152fecf..e390913b50c38826735d1f110080cbd8eee41a0a 100644 (file)
@@ -42,14 +42,14 @@ TMPDIR=@working_dir@
 # The purpose of this function to wait a maximum 
 #   time for the drive. It will
 #   return as soon as the drive is ready, or after
-#   waiting a maximum of 180 seconds.
+#   waiting a maximum of 300 seconds.
 # Note, this is very system dependent, so if you are
 #   not running on Linux, you will probably need to
 #   re-write it, or at least change the grep target.
 #
 wait_for_drive() {
   i=0 
-  while [ $i -le 180 ]; do  # Wait max 180 seconds
+  while [ $i -le 300 ]; do  # Wait max 300 seconds
     if mt -f $1 status | grep ONLINE  >/dev/null 2>&1; then
       break
     fi
index acbdba743f8c1baf61faac29c5e167b180ee6179..c1f5a7866d06c0060ea075b56f98bd140e1e747c 100755 (executable)
@@ -471,6 +471,7 @@ void *jobq_server(void *arg)
              jcr->JobStatus != JS_Terminated &&
              jcr->JobStatus != JS_Canceled &&
              jcr->job->RescheduleTimes > 0 &&
+             jcr->JobType == JT_BACKUP &&
              jcr->reschedule_count < jcr->job->RescheduleTimes) {
              char dt[50];
 
index 607cf92d662f1ef078f963e771cb2dfc0b05a6da..ee0897e86f945e022f50492f04eadf3e809dff52 100644 (file)
@@ -1,8 +1,8 @@
 /* */
 #undef  VERSION
 #define VERSION "1.37.32"
-#define BDATE   "24 July 2005"
-#define LSMDATE "24Jul05"
+#define BDATE   "26 July 2005"
+#define LSMDATE "26Jul05"
 
 /* Debug flags */
 #undef  DEBUG