Setting filesystem event monitoring (inotify)
Configure an event monitoring tool (such as inotify
) for notifying processes about filesystem events, such as file creation, deletion, and updates.
About this task
The Linux system puts a limit on the number of inotify watches assigned to each user.
Steps
-
To increase the limit, edit
etc/systctl.conf
by adding the following line.fs.inotify.max_user_watches = 524288
-
Run the following command.
$ sudo sysctl -w fs.inotify.max_user_watches=524288