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:
Lourenço Vales
2025-05-05 23:41:24 -04:00
committed by James Shubin
parent 4903995052
commit f2a6a6769f
2 changed files with 71 additions and 1 deletions

6
examples/lang/exec1.mcl Normal file
View File

@@ -0,0 +1,6 @@
exec "exec1" {
cmd => "echo hello world > /tmp/whatever",
shell => "/bin/bash",
creates => "/tmp/whatever",
watchfiles => ["/tmp/whatever", "/tmp/adir/",],
}