这是我的尝试:
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
但它只运行一次。每当修改时如何使其运行/tmp/bar.txt
?
这是我的尝试:
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
但它只运行一次。每当修改时如何使其运行/tmp/bar.txt
?