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

Reply via email to