Here's my attempt:
start on (filesystem and net-device-up IFACE!=lo and file EVENT=modify FILE="/tmp/bar.txt")
task
script
chdir /tmp
exec echo THIS_CHANGED >> CHANGEDDDDDDDD
end script
But it only runs once. How do I make it run whenever /tmp/bar.txt
is modified?