]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/dird.c
Correct pool source setting
[bacula/bacula] / bacula / src / dird / dird.c
index a6e45638490fec3eb4cb02e001a3ec6f9dc019e9..a5f65266e83498457140763b06a95d71b2f48aaf 100644 (file)
@@ -401,7 +401,7 @@ void reload_config(int sig)
    reload_table[table].res_table = save_config_resources();
    Dmsg1(100, "Saved old config in table %d\n", table);
 
-   ok = parse_config(configfile, 0);  /* no exit on error */
+   ok = parse_config(configfile, 0, M_ERROR);  /* no exit on error */
 
    Dmsg0(100, "Reloaded config file\n");
    if (!ok || !check_resources()) {
@@ -555,6 +555,19 @@ static int check_resources()
                job->storage->append(st);
             }
          }
+         /* Handle RunScripts alists specifically */
+         if (jobdefs->RunScripts) {
+            RUNSCRIPT *rs, *elt;
+           
+           if (!job->RunScripts) {
+              job->RunScripts = New(alist(10, not_owned_by_alist));
+           }
+          
+           foreach_alist(rs, jobdefs->RunScripts) {
+              elt = copy_runscript(rs);
+               job->RunScripts->append(elt); /* we have to free it */
+            }
+         }
 
          /* Transfer default items from JobDefs Resource */
          for (i=0; job_items[i].name; i++) {