Next: , Up: System dependencies   [Contents][Index]


6.1 GNU/Linux systems.

On GNU/Linux the program uses inotify. See monitoring file system events in inotify(7) man page.

The maximum number of watches a user process can have is controlled by the ‘fs.inotify.max_user_watches’ system variable. Normally it is set to 8192, which is quite enough for most purposes. However, if you monitor a big number or directories and/or are using recursive watchers, you may need to increase this number. In that case, use sysctl (see configure kernel parameters at runtime in sysctl(8) man page) to raise the limit, e.g.:

sysctl -w fs.inotify.max_user_watches=16384

Most GNU/Linux distributions provide the file /etc/sysctl.conf which can be used to set this variable on startup.

The following system-dependent events are defined on systems that use inotify:

ACCESS

A file was accessed.

ATTRIB

A file’s metadata changed.

CLOSE_WRITE

A writable file was closed.

CLOSE_NOWRITE

An unwritable file closed.

CREATE

A file was created.

DELETE

A file was deleted.

MODIFY

A file was modified.

MOVED_FROM

A file was moved into a monitored directory.

MOVED_TO

A file was moved out from a monitored directory.

OPEN

A file was opened.