SubSysDirectory = "@subsysdir@"
Maximum Concurrent Jobs = 4
Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password
- Messages = Daemon
+ Messages = Standard
}
JobDefs {
Name = "RUN_DIR_FAILED"
FileSet = FS_TESTJOB
JobDefs = DefaultJob
- RunBeforeJob = "/bin/false"
+ RunBeforeJob = "/bin/false RUN_DIR_FAILED"
Run After Failed Job = "/bin/echo RunAfterFailedJob"
}
-#@hostname@-fd: ClientBeforeJob: run command "/bin/false"
-#@hostname@-fd: ClientBeforeJob: run command "/bin/false 2"
+#@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
+#@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"
#@hostname@-dir: AfterJob: run command "/bin/echo RunAfterFailedJob"
Job {
Name = "RUN_FD_FAILED"
FileSet = FS_TESTJOB
JobDefs = DefaultJob
RunScript {
- Command = "/bin/false"
+ Command = "/bin/false RUN_FD_FAILED1"
abortjobonerror = no
RunsWhen = Before
}
RunScript {
- Command = "/bin/false 2"
+ Command = "/bin/false RUN_FD_FAILED2"
abortjobonerror = yes
RunsWhen = Before
}
Run After Failed Job = "/bin/echo RunAfterFailedJob"
}
-#@hostname@-fd: ClientBeforeJob: run command "/bin/false"
+#@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_WARNING"
#Backup OK -- with warnings
Job {
Name = "RUN_FD_WARNING"
FileSet = FS_TESTJOB
JobDefs = DefaultJob
RunScript {
- Command = "/bin/false After False"
+ Command = "/bin/false RUN_FD_WARNING"
abortjobonerror = no
RunsWhen = Before
}
Messages {
Name = Standard
- mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
- operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: Intervention needed for %j\" %r
-"
- MailOnError = @job_email@ = all
- operator = @job_email@ = mount
- console = all, !skipped, !terminate, !restored
-#
-# WARNING! the following will create a file that you must cycle from
-# time to time as it will grow indefinitely. However, it will
-# also keep all your messages if the scroll off the console.
-#
- append = "@working_dir@/log" = all, !skipped
-}
-
-Messages {
- Name = NoEmail
- mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
- console = all, !skipped, !terminate
-#
-# WARNING! the following will create a file that you must cycle from
-# time to time as it will grow indefinitely. However, it will
-# also keep all your messages if the scroll off the console.
-#
- append = "@working_dir@/log" = all, !skipped
-}
-
-
-# Message delivery for daemon messages (no job).
-Messages {
- Name = Daemon
- mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
- mail = @job_email@ = all, !skipped
- console = all, !skipped, !saved
- append = "@working_dir@/log" = all, !skipped
+ stdout = all, !skipped
}
# Default pool definition