inotifywait not detecting links
You can't. inotifywait
watches the symbolic links themselves, not the files they point to.
Behind the scenes inotifywait
uses the inotify
syscall with the IN_DONT_FOLLOW
flag, which causes this behaviour. If you want to change that you would need to write your own inotifywait
, without the flag.
I got this from this discussion.