Director { # define myself
Name = @hostname@-dir
- DIRport = 8101 # where we listen for UA connections
+ DIRPort = @dirport@ # where we listen for UA connections
QueryFile = "@scriptdir@/query.sql"
WorkingDirectory = "@working_dir@"
PidDirectory = "@piddir@"
FileSet {
Name = FS_TESTJOB
Include {
- File=</tmp/file-list
+ File=<@tmpdir@/file-list
}
}
JobDefs = DefaultJob
RunScript {
Command = "/bin/false RUN_FD_FAILED1"
- abortjobonerror = no
+ failjobonerror = no
RunsWhen = Before
}
RunScript {
Command = "/bin/false RUN_FD_FAILED2"
- abortjobonerror = yes
+ failjobonerror = yes
RunsWhen = Before
}
Run After Failed Job = "/bin/echo RunAfterFailedJob"
+ RunScript {
+ Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
+ RunScript {
+ Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
}
#@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
JobDefs = DefaultJob
RunScript {
Command = "/bin/false RUN_FD_FAILED1"
- abortjobonerror = yes
+ failjobonerror = yes
RunsWhen = Before
}
RunScript {
Command = "/bin/false RUN_FD_FAILED2"
- abortjobonerror = yes
+ failjobonerror = yes
RunsWhen = Before
}
RunScript {
Command = "/bin/false RUN_FD_FAILED3"
- abortjobonerror = yes
+ failjobonerror = yes
RunsOnFailure = yes
RunsWhen = Before
}
JobDefs = DefaultJob
RunScript {
Command = "/bin/false RUN_FD_WARNING"
- abortjobonerror = no
+ failjobonerror = no
RunsWhen = Before
}
Run After Failed Job = "/bin/echo RunAfterFailedJob"
}
+FileSet {
+ Name = FS_FIFO
+ Include {
+ Options { readfifo = yes }
+ File=<@tmpdir@/file-list
+ }
+}
+
+Job {
+ Name = BUG_897
+ JobDefs = DefaultJob
+ FileSet = FS_FIFO
+
+ RunScript {
+ Command = "/bin/echo touching @tmpdir@/RUN_BUG_897"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
+ RunScript {
+ Command = "/bin/touch @tmpdir@/RUN_BUG_897"
+ RunsWhen = after
+ RunsOnFailure = yes
+ }
+}
+
# Client (File Services) to backup
Client {
Name = @hostname@-fd
Address = @hostname@
- FDPort = 8102
+ FDPort = @fdport@
Catalog = MyCatalog
Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
File Retention = 30d # 30 days
Storage {
Name = File
Address = @hostname@ # N.B. Use a fully qualified name here
- SDPort = 8103
+ SDPort = @sdport@
Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
Device = FileStorage
Media Type = File