joh / when-changed

Execute a command when a file is changed
Other
1.21k stars 107 forks source link

when-changed doesn't work on AWS EFS? #88

Open roeeklinger opened 2 years ago

roeeklinger commented 2 years ago

I am trying to watch for changes in a file that is in an AWS Elastic File System, however, I noticed that when-changed completely doesn't work on files hosted there.

Similarly, incron doesn't work on these files or directories as well.

Is there any specific reason why it doesn't work or a workaround to get it to work?

Thanks

joh commented 2 years ago

when-changed uses watchdog to watch files for changes, so I suspect there's an issue with watchdog and AWS EFS. Could you try the watchmedo utility to see if it triggers any events on the files hosted on AWS EFS?