Dear list, Using Bacula 2.4.4 I was stuck on why my Admin Type job did not work. Messages on bconsole reported: 27-Jul 17:49 olaf-dir JobId 4471: Bacula 2.4.4 (28Dec08): 27-Jul-2009 17:49 JobId: 4471 Job: MyAdmin_JobBefore.2009-07-27_17.49.52.34 Start time: 27-Jul-2009 17:49 End time: 27-Jul-2009 17:49 Termination: Admin OK
No errors. Also no errors in logs etc. Yet no external script got executed. However when using RunAfterJob instead of RunScript{} the script(s) run fine. The usage of RunScript{} is preferable as it is more fine grained as RunAfterJob is. I tested with various scripts. Not just the ones specified below. Am I doing something wrong in the configuration department or is this a bug? Regards, Olaf relevant part of my bacula-dir.conf : Schedule { Name = "MyAdmin_Schedule" Run = Level=Full Pool=File_test Messages=Standard hourly at 0:00 Run = Level=Full Pool=File_test Messages=Standard hourly at 0:15 Run = Level=Full Pool=File_test Messages=Standard hourly at 0:30 Run = Level=Full Pool=File_test Messages=Standard hourly at 0:45 # used for more accurate testing: Run = Level=Full Pool=File_test Messages=Standard hourly at 0:50 } Job { Name = "MyAdmin_JobAfter" Type = Admin Client = olaf-fd FileSet = "Test Files" Messages = Standard Storage = File Pool = Default Schedule = "MyAdmin_Schedule" RunScript { RunsWhen = After FailJobOnError = Yes #Command = "/etc/init.d/apache2 start" #Command = "echo \"about to start Apache\"" #Command = "echo \"AfterJob was run\" > /tmp/bactest.log" Command = "/etc/bacula/extra-scripts/bla.sh" } # RunAfterJob = "/etc/bacula/extra-scripts/bla.sh" } bla.sh : #!/bin/bash echo "Blaaaa" > /tmp/bla.log ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users