Hi. I was said that this option got into current manual by mistake and it's only available in 1.39.x.
Silver On Monday 16 October 2006 19:09, Alessio Curri wrote: > Hi to all, > > I have the same problem with version 1.38.11-3, built from rpms. > This version support the "Run Script" directive or I should use a 1.39.x > beta version? > I receive the same answer even I use the "Client Run After Failed Job" > (all is ok if I use the "Client Run Before Job" and "Client Run After Job") > > Here is my configuration.: > > Job { > Name = JOBNAME > jobdefs = bisettimanale > Client = CLIENTNAME > Fileset = "client DATA" > Run Script { > RunsOnClient = yes > RunsWhen = Before > Command = "/etc/init.d/program stop" > } > > Run Script { > RunsOnClient = yes > RunsWhen = After > RunsOnFailure = yes > RunsOnSuccess = yes > Command = "/etc/init.d/program start" > } > } > > Starting Bacula Director services: 16-Oct 17:55 bacula-dir: ERROR > TERMINATION at parse_conf.c:853 > Config error: Keyword "RunScript" not permitted in this resource. > Perhaps you left the trailing brace off of the previous resource. > : line 1224, col 14 of file /etc/bacula/bacula-dir.conf > Run Script { > > [FAILED] > > Alessio > > Silver Salonen ha scritto: > > Hi again. > > > > I use Bacula 1.38.11 and I wanted to replace my "Client Run Before Job" > > and "Client Run After Job" directives with "Run Script", so that the script > > would run after failed job also. > > > > The Job resource is now: > > ==== > > Job { > > ... > > Run Script { > > Command = "/some/before-script.sh" > > Runs When = Before > > } > > Run Script { > > Command = "/some/after-script.sh" > > Runs When = After > > Runs On Failure = yes > > } > > } > > ==== > > > > When I tried "reload", bacula-dir crashed (or exited for a configuration > > error, whatever; PS. isn't the reload directive say when there's a > > configuration error, instead of crashing director?). When I try to start > > bacula-dir manually, it says: > > ==== > > Config error: Keyword "RunScript" not permitted in this resource. > > Perhaps you left the trailing brace off of the previous resource. > > : line 23, col 12 of file /usr/local/etc/bacula/jobs-aidamees.conf > > Run Script { > > ==== > > > > Where should I put the "Run Script" then? > > > > Silver ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users