Hi All,

I just experienced that if I use multiple (>1) jobdefs in a "subtree" like 
style the "RunScript" directive does not work.
Is this a wanted behavior or should I debug further and possibly open a bug 
report?

What I am experiencing is like the following:
There is job A referencing JobDefA which refrences JobDevB.
As long as JobDefA contains my RunScript everything works as expected.
If I move my RunScript to JobDefB it is no longer executed (no error or 
something - just like bareos cannot "see" it.

Thanks for any feedback in advance.

*Script working:*

Job {
   Name = 'JobA'
   ...
   JobDefs = 'JobDefA'
}

JobDefs {
  Name = 'JobDefA'
  JobDefs = 'JobDefB'
  ...
  RunScript {
     RunsWhen = Before
     RunsOnClient = Yes
     Command = "MyCommand"
  }
}

JobDefs {
  Name = 'JobDefB'
  ...
}


 *Script not working:*

 Job {
   Name = 'JobA'

   ...
   JobDefs = 'JobDefA'
}

JobDefs {
  Name = 'JobDefA'
  JobDefs = 'JobDefB'
  ...
}

JobDefs {
  Name = 'JobDefB'
  ...

  RunScript {
     RunsWhen = Before
     RunsOnClient = Yes
     Command = "MyCommand"
  } 

}

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/cf8ef18d-272f-472d-b6e5-2f95410a514d%40googlegroups.com.

Reply via email to