Files
mgmt/examples/lang/exec1.mcl
Lourenço Vales f2a6a6769f 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.
2025-05-05 23:54:33 -04:00

7 lines
162 B
Plaintext

exec "exec1" {
cmd => "echo hello world > /tmp/whatever",
shell => "/bin/bash",
creates => "/tmp/whatever",
watchfiles => ["/tmp/whatever", "/tmp/adir/",],
}