engine: resources: Add a WatchFiles field to exec
This adds a field that takes a list of files for exec to watch for events on.
This commit is contained in:
committed by
James Shubin
parent
4903995052
commit
f2a6a6769f
6
examples/lang/exec1.mcl
Normal file
6
examples/lang/exec1.mcl
Normal file
@@ -0,0 +1,6 @@
|
||||
exec "exec1" {
|
||||
cmd => "echo hello world > /tmp/whatever",
|
||||
shell => "/bin/bash",
|
||||
creates => "/tmp/whatever",
|
||||
watchfiles => ["/tmp/whatever", "/tmp/adir/",],
|
||||
}
|
||||
Reference in New Issue
Block a user