inotify is a Linux kernel subsystem to efficiently monitor changes to the filesystem. It allows applications to monitor changes to files, but requires special support for network file system like NFS, SMB and CephFS that are often missing.
This tool, irenotify, monitors a directory to observe file changes and touches changed files to enforce inotify events to be sent out. It recognizes changed files by periodically and recursively listing files in a directory and comparing modify timestamps.
irenotify was purpose-built for a specific use case. It might also support your requirements, but keep following limitations in mind:
irenotify is written in golang. Apart from requiring a working golang toolchain installed, building it is as easy as running go build.
A Docker image is available at https://hub.docker.com/r/jenserat/irenotify.
Usage of irenotify:
-delay duration
delay between subsequent filesystem scans (default 1s)
-path string
path to monitor, watching working directory if not set
-v int
log level (default 2)
Content type
Image
Digest
sha256:bcee0fe92…
Size
1.5 MB
Last updated
over 3 years ago
docker pull jenserat/irenotify