Setting file system event monitoring (inotify
)
You can configure an event monitoring tool such as inotify
for notifying processes about file system events, including file creation, deletion, and updates.
About this task
Linux limits the number of inotify
watches a user can receive.
Steps
-
To increase the limit, edit
etc/sysctl.conf
to add the following line.fs.inotify.max_user_watches = 524288
-
Run the following command.
$ sudo sysctl -w fs.inotify.max_user_watches=524288