PingDirectory

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

  1. To increase the limit, edit etc/systctl.conf by adding the following line.

    fs.inotify.max_user_watches = 524288
  2. Run the following command.

    $ sudo sysctl -w fs.inotify.max_user_watches=524288